| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/babel/__pycache__/ |
Upload File : |
o
p�`� � @ s� d Z ddlZddlZddlmZ ddlmZmZmZ i Z e�
� Zej�
ej�e�d�Zdd� Zdd � Zd
d� Zdd
d�Zdd� ZG dd� de�ZG dd� dej�ZdS )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)�pickle�string_types�abczlocale-datac C sL | rt | t�s dS | �� �� } t�tt� g�D ]}| |�� kr#| S qdS )z�Normalize 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 �strip�lowerr �
from_iterable�_cache�locale_identifiers)�name� locale_id� r �2/usr/lib/python3/dist-packages/babel/localedata.py�normalize_locale s ��r c C sX | rt | t�s dS tj�| �} | tv rdS tj�tj�td| ��}|r&dS t t
| ��S )z�Check 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 �os�path�basenamer
�exists�join�_dirname�boolr )r �
file_foundr r r r ) s r c C s<