mirror of
https://github.com/django/django.git
synced 2025-08-22 03:24:21 +00:00
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
This commit is contained in:
parent
edee5a8de6
commit
2c69824e5a
63 changed files with 145 additions and 150 deletions
|
@ -114,7 +114,7 @@ def lang_stats(resources=None, languages=None):
|
|||
|
||||
for name, dir_ in locale_dirs:
|
||||
print("\nShowing translations stats for '%s':" % name)
|
||||
langs = sorted([d for d in os.listdir(dir_) if not d.startswith('_')])
|
||||
langs = sorted(d for d in os.listdir(dir_) if not d.startswith('_'))
|
||||
for lang in langs:
|
||||
if languages and lang not in languages:
|
||||
continue
|
||||
|
@ -142,7 +142,7 @@ def fetch(resources=None, languages=None):
|
|||
# Transifex pull
|
||||
if languages is None:
|
||||
call('tx pull -r %(res)s -a -f --minimum-perc=5' % {'res': _tx_resource_for_name(name)}, shell=True)
|
||||
target_langs = sorted([d for d in os.listdir(dir_) if not d.startswith('_') and d != 'en'])
|
||||
target_langs = sorted(d for d in os.listdir(dir_) if not d.startswith('_') and d != 'en')
|
||||
else:
|
||||
for lang in languages:
|
||||
call('tx pull -r %(res)s -f -l %(lang)s' % {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue