Skip to content

Conversation

@agoncharov-reef
Copy link

No description provided.

@agoncharov-reef agoncharov-reef force-pushed the replication-troubleshooting branch from 755c931 to efdaca6 Compare August 5, 2022 15:26
key = None
for key, value in rows:
self._print(' ' * 2 + key + ': ' + value)
if not key: # loop was not entered

Choose a reason for hiding this comment

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

Suggested change
if not key: # loop was not entered
if key is None: # loop was not entered

because an empty key will mess with this

Choose a reason for hiding this comment

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

also PEP8 says if you want to check if something is None, use if key is None, not if not key:

@agoncharov-reef agoncharov-reef force-pushed the replication-troubleshooting branch from efdaca6 to 869596b Compare August 19, 2022 11:31
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.

3 participants