Skip to content
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

Revert "not not" deletion and add comment as to why that is there #31948

Merged
merged 1 commit into from
Mar 17, 2016

Conversation

rallytime
Copy link
Contributor

See this comment for more information.

rallytime referenced this pull request Mar 17, 2016
@rallytime
Copy link
Contributor Author

There's a non-related lint failure on this that is fixed in #31952

rallytime pushed a commit that referenced this pull request Mar 17, 2016
Revert "not not" deletion and add comment as to why that is there
@rallytime rallytime merged commit a86490e into saltstack:2015.8 Mar 17, 2016
@rallytime rallytime deleted the disable-pylint-error branch March 17, 2016 17:00
@@ -326,7 +326,8 @@ def upgrade_available(name):

salt '*' pkg.upgrade_available <package name>
'''
return latest_version(name)
# The "not not" tactic is intended here as it forces the return to be False.
return not not latest_version(name) # pylint: disable=C0113
Copy link
Contributor

Choose a reason for hiding this comment

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

bool(name) would be more idiomatic. not not is only necessary if you're supporting Python versions older than 2.2.1.

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