0x1949 Team - FAZEMRX - MANAGER
Edit File: localedata.cpython-310.pyc
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<