diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-30 12:11:05 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-04-21 07:50:43 -0400 |
| commit | 50dddbdfc7489847d55465ad352fc3278b2a9a08 (patch) | |
| tree | c7f235ed0e6b14ee6f9ee71c2802d42b1f15f77c /scripts | |
| parent | 0dad0ca55ec6081d3e92ac8340ed9f8d5c65a606 (diff) | |
[1.7.x] Corrected many style guide violations that the newest version of flake8 catches
Backport of 778ce245dd466bce1b19f89e52cf9ed8f1b46513 from master
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/manage_translations.py | 2 |
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" % { |
