Skip to content

Conversation

@bact
Copy link

@bact bact commented Nov 16, 2019

  • Replace comparisons with None from == None to is None and from != None to is not None
  • Drop unnecessary comparisons when obvious, follows Python convention that if a value is not None/False/zero/empty, it is True in a boolean test
  • Drop ; semicolons at the end of some statements
  • Formatted with black, remove trailing spaces
  • Use with context manager for open files

bact added 2 commits November 16, 2019 20:12
…s not"

- Drop unnecessary comparison, follows Python convention of default True value if a value is not None
- Formatted with black
@bact bact changed the title Code convention and format Python code convention and format Nov 16, 2019
@bact bact changed the title Python code convention and format Follows PEP 8 Python code convention and format Nov 17, 2019
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.

1 participant