| Server IP : 3.7.136.76 / Your IP : 216.73.216.142 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-39-148 7.0.0-1010-aws #10~24.04.1-Ubuntu SMP PREEMPT Mon Jul 27 17:41:33 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /snap/core22/current/usr/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<