summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-30 12:11:05 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-03-30 12:11:05 -0700
commit778ce245dd466bce1b19f89e52cf9ed8f1b46513 (patch)
tree2de2ad5574c99a5918eb35d9bbb6d7c4fdd86ed7 /scripts
parent92dbf342868e68dfe60569c60dd5aa5925194221 (diff)
Corrected many style guide violations that the newest version of flake8 catches
Diffstat (limited to 'scripts')
-rw-r--r--scripts/manage_translations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/manage_translations.py b/scripts/manage_translations.py
index 078cc7f9bb..4b7f856b2d 100644
--- a/scripts/manage_translations.py
+++ b/scripts/manage_translations.py
@@ -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" % {