[1.7.x] Corrected many style guide violations that the newest version of flake8 catches

Backport of 778ce245dd from master
This commit is contained in:
Alex Gaynor 2014-03-30 12:11:05 -07:00 committed by Tim Graham
parent 0dad0ca55e
commit 50dddbdfc7
37 changed files with 54 additions and 52 deletions

View file

@ -115,7 +115,7 @@ def lang_stats(resources=None, languages=None):
print("\nShowing translations stats for '%s':" % name)
langs = sorted([d for d in os.listdir(dir_) if not d.startswith('_')])
for lang in langs:
if languages and not lang in languages:
if languages and lang not in languages:
continue
# TODO: merge first with the latest en catalog
p = Popen("msgfmt -vc -o /dev/null %(path)s/%(lang)s/LC_MESSAGES/django%(ext)s.po" % {