]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Fix _locales_to_names: Call str() on the parameter variable instead of the module...
authorDaniel <daniel.infanger@gmail.com>
Tue, 24 Oct 2023 14:19:32 +0000 (16:19 +0200)
committerGitHub <noreply@github.com>
Tue, 24 Oct 2023 14:19:32 +0000 (14:19 +0000)
Co-authored-by: Daniel Trachsel <daniel.trachsel@borm.ch>
babel/support.py

index e0a76b2d3d2b937af703487ebbb63b9ff86fbfce..43b406349c16272e88eb5cf84ac2eee8275e61d6 100644 (file)
@@ -705,7 +705,7 @@ def _locales_to_names(
     if locales is None:
         return None
     if isinstance(locales, Locale):
-        return [str(locale)]
+        return [str(locales)]
     if isinstance(locales, str):
         return [locales]
     return [str(locale) for locale in locales]