| Server IP : 195.114.193.97 / Your IP : 216.73.217.93 Web Server : LiteSpeed System : Linux host 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64 User : sembi4241 ( 1126) PHP Version : 8.1.33 Disable Function : NONE 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<