-
Notifications
You must be signed in to change notification settings - Fork 5
python 3.11 && test module #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
the test module adds an example user to the given survey and sends notifications
axnsantana
left a comment
There was a problem hiding this 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) | ||
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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}")
|
I just update the code from 2.7 to new python versions 3.10. You can complement it with the tests and other changes. |
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