PEP8 E712 fixes (#21916)

This commit is contained in:
Matt Martz 2017-02-24 16:49:43 -06:00 committed by GitHub
parent 5d39056379
commit 305c88700d
34 changed files with 103 additions and 123 deletions

View file

@ -302,7 +302,7 @@ def package_latest(names, pkg_spec, module):
# parse out a successful update above. This way we will report a
# successful run when we actually modify something but fail
# otherwise.
if pkg_spec[name]['changed'] != True:
if pkg_spec[name]['changed'] is not True:
if pkg_spec[name]['stderr']:
pkg_spec[name]['rc'] = 1
@ -614,7 +614,7 @@ def main():
else:
combined_error_message = pkg_spec[n]['stdout']
if pkg_spec[n]['changed'] == True:
if pkg_spec[n]['changed'] is True:
combined_changed = True
# If combined_error_message contains anything at least some part of the