Skip to content

STY: Fix PEP8 - E712 linting error (fixes tests) #1920

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

Merged
merged 1 commit into from
Jan 13, 2016
Merged

STY: Fix PEP8 - E712 linting error (fixes tests) #1920

merged 1 commit into from
Jan 13, 2016

Conversation

jakirkham
Copy link
Contributor

Was causing some build failures on the linting step. This is one easy way to fix it. This assumes the comparison to True as opposed to using __nonzero__ is important.

@jakirkham
Copy link
Contributor Author

Tests pass.

@jakirkham jakirkham changed the title STY: Comparison to True should use is or be silent according to PEP8 - E712 STY: Fix PEP8 - E712 linting error (fixes tests) Jan 12, 2016
ericholscher added a commit that referenced this pull request Jan 13, 2016
STY: Fix PEP8 - E712 linting error (fixes tests)
@ericholscher ericholscher merged commit 0a2c258 into readthedocs:master Jan 13, 2016
@ericholscher
Copy link
Member

Thanks :)

@jakirkham jakirkham deleted the pep8_e712_fix branch January 13, 2016 17:29
@jakirkham
Copy link
Contributor Author

No problem.

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