-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
Changes to comply with PEP8 #193
Conversation
Changes to make script cleaner and comply with PEP8.
@@ -42,8 +43,15 @@ def _request(self, url, method='GET', params={}, headers={}, stream=False, raw=F | |||
req_log.propagate = True | |||
""" | |||
|
|||
if params in None: |
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.
Change in
to is
This PR would be easier to review if the code refactoring was separate from the changes for PEP8 compliance. Python black could be used to make code style more consistent. |
@@ -20,11 +20,14 @@ | |||
import sys | |||
|
|||
if sys.version[0] == '2': |
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.
If we're not going to support python 2, I'd prefer all the related code just be removed rather than commented out.
Changes to make code cleaner and to comply with PEP8. #30