From 2c69824e5ab5ddf4b9964c4cf9f9e16ff3bb7929 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 1 Jun 2017 16:08:59 -0700 Subject: Refs #23968 -- Removed unnecessary lists, generators, and tuple calls. --- scripts/manage_translations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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' % { -- cgit v1.3