%PDF- %PDF-
Direktori : /opt/alt/python37/lib/python3.7/site-packages/babel/__pycache__/ |
Current File : //opt/alt/python37/lib/python3.7/site-packages/babel/__pycache__/localedata.cpython-37.pyc |
B 1P�Y[ � @ s� d Z ddlZddlZddlmZ ddlmZ ddlZddlm Z m Z dd� Zi Ze� � Zej�e� d�Zd d � Zdd� Zd d� Zddd�Zdd� ZG dd� de�ZG dd� de�ZdS )aB 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 by the Babel Team. :license: BSD, see LICENSE for more details. � N)�MutableMapping)�chain)�pickle�string_typesc C s0 t tdd�r t tdd �r tj} ntj�t�} | S )N�frozenF�_MEIPASS)�getattr�sysr �os�path�dirname�__file__)Zbasedir� r �A/opt/alt/python37/lib/python3.7/site-packages/babel/localedata.py�get_base_dir s r zlocale-datac C sL | rt | t�sdS | �� �� } x(t�tt� g�D ]}| |�� kr0|S q0W dS )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)�nameZ locale_idr r r �normalize_locale&