mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
[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:
parent
0dad0ca55e
commit
50dddbdfc7
37 changed files with 54 additions and 52 deletions
|
@ -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" % {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue