found another unnecessary list-ification

This commit is contained in:
Matthias Urlichs committed 2019-02-05 17:41:30 +01:00
1 parent bf16bd1180
commit 9eb29a8ce0
1 file changed
+1 -1
+1 -1
View File
@@ -71,7 +71,7 @@ def enable_additional_translations(default_locale="en", additional_folders=None)
locale_dir = os.path.join(entry.path, 'LC_MESSAGES')
if not os.path.isdir(locale_dir):
continue
if len(list(filter(lambda x: x.name.endswith('.mo'), scandir(locale_dir)))):
if any(filter(lambda x: x.name.endswith('.mo'), scandir(locale_dir))):
result.append(Locale.parse(entry.name))
return result