Skip to content

Conversation

@mchuc
Copy link

@mchuc mchuc commented Dec 19, 2023

the test module adds an example user to the given survey and sends notifications
print change for python 3
similarly to the items enumerator for parameters

Copy link
Owner

@axnsantana axnsantana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the pull request updating the tool for a new python version.
I left some small comments

method = "get_survey_properties"
print params
r = self.call_rpc(method,params)
print
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not going to work, syntax error.

print "Params before: %s" % params
params = self.__sort_params(method,params)
print "Params sorted: %s" % params
print("Method: %s" % method)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A good idea is to already update to use f-strings, for example: print(f"Method: {method}")

@axnsantana
Copy link
Owner

I just update the code from 2.7 to new python versions 3.10. You can complement it with the tests and other changes.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants