found another unnecessary list-ification
This commit is contained in:
1 parent
bf16bd1180
commit
9eb29a8ce0
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user