Skip to content

Commit

Permalink
Update babel/support.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jonah Lawrence <jonah@freshidea.com>
  • Loading branch information
akx and DenverCoder1 committed Mar 2, 2023
1 parent 9487b2e commit 8553928
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions babel/support.py
Expand Up @@ -684,8 +684,11 @@ def merge(self, translations: Translations):
def _locales_to_names(
locales: Iterable[str | Locale] | str | Locale | None,
) -> list[str] | None:
"""
Normalize a `locales` argument to a list of locale names.
"""Normalize a `locales` argument to a list of locale names.
:param locales: the list of locales in order of preference (items in
this list can be either `Locale` objects or locale
strings)
"""
if locales is None:
return None
Expand Down

0 comments on commit 8553928

Please sign in to comment.