summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-06-01 16:08:59 -0700
committerTim Graham <timograham@gmail.com>2017-06-01 19:08:59 -0400
commit2c69824e5ab5ddf4b9964c4cf9f9e16ff3bb7929 (patch)
tree65b8e60b858e4f073a04c2bbf976b8f43fe0cff6 /scripts
parentedee5a8de6afb34a9247de2bb73ab66397a6e573 (diff)
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/manage_translations.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/manage_translations.py b/scripts/manage_translations.py
index 74534d47da..5397d35bae 100644
--- a/scripts/manage_translations.py
+++ b/scripts/manage_translations.py
@@ -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' % {