From 778ce245dd466bce1b19f89e52cf9ed8f1b46513 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 30 Mar 2014 12:11:05 -0700 Subject: Corrected many style guide violations that the newest version of flake8 catches --- scripts/manage_translations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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" % { -- cgit v1.3