/usr/lib/python3/dist-packages/babel/__pycache__
Edit: /usr/lib/python3/dist-packages/babel/__pycache__/localedata.cpython-310.pyc (7550B)
o
p` @ s d Z ddlZddlZddlmZ ddlmZmZmZ i Z e
Zej
ejedZdd Zdd Zd
d Zdd
dZdd ZG dd deZG dd dejZdS )aG
babel.localedata
~~~~~~~~~~~~~~~~
Low-level locale data access.
:note: The `Locale` class, which uses this module under the hood, provides a
more convenient interface for accessing the locale data.
:copyright: (c) 2013-2019 by the Babel Team.
:license: BSD, see LICENSE for more details.
N)chain)picklestring_typesabczlocale-datac C sL | rt | ts dS | } ttt gD ]}| | kr#| S qdS )zNormalize a locale ID by stripping spaces and apply proper casing.
Returns the normalized locale ID string or `None` if the ID is not
recognized.
N)
isinstancer striplowerr
from_iterable_cachelocale_identifiers)name locale_id r 2/usr/lib/python3/dist-packages/babel/localedata.pynormalize_locale s r c C sX | rt | ts dS tj| } | tv rdS tjtjtd| }|r&dS t t
| S )zCheck whether locale data is available for the given locale.
Returns `True` if it exists, `False` otherwise.
:param name: the locale identifier string
FT%s.dat)r r ospathbasenamer
existsjoin_dirnameboolr )r
file_foundr r r r ) s r c C s<