| Server IP : 172.67.201.108 / Your IP : 216.73.216.55 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7 System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/babel/__pycache__/ |
Upload File : |
a
�`+� � ( @ s d Z ddlZddlmZ ddlmZmZ ddlmZ g d�Z da
ei �Zdd� Zd d
� Z
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2�'ZG d3d4� d4e�ZG d5d6� d6e�Zdefd7d8�Zd9efd:d;�Zd@d<d=�ZdAd>d?�ZdS )Bz�
babel.core
~~~~~~~~~~
Core locale representation and locale data access.
:copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
� N)�
localedata)�pickle�string_types)�
PluralRule)�UnknownLocaleError�Locale�default_locale�negotiate_locale�parse_localec C s t d��d S )Nz�The babel data files are not available. This usually happens because you are using a source checkout from Babel and you did not build the data files. Just make sure to run "python setup.py import_cldr" before installing the library.)�RuntimeError� r r �./usr/lib/python3.9/site-packages/babel/core.py�_raise_no_data_error s r c C s| t du rptj�tj�t��}tj�|d�}tj�|�s<t� t|d��}t �
|�a W d � n1 sf0 Y t �| i �S )a_ Return the dictionary for the given key in the global data.
The global data is stored in the ``babel/global.dat`` file and contains
information independent of individual locales.
>>> get_global('zone_aliases')['UTC']
u'Etc/UTC'
>>> get_global('zone_territories')['Europe/Berlin']
u'DE'
The keys available are:
- ``all_currencies``
- ``currency_fractions``
- ``language_aliases``
- ``likely_subtags``
- ``parent_exceptions``
- ``script_aliases``
- ``territory_aliases``
- ``territory_currencies``
- ``territory_languages``
- ``territory_zones``
- ``variant_aliases``
- ``windows_zone_mapping``
- ``zone_aliases``
- ``zone_territories``
.. note:: The internal structure of the data may change between versions.
.. versionadded:: 0.9
:param key: the data key
Nz
global.dat�rb)�_global_data�os�path�join�dirname�__file__�isfiler �openr �load�get)�keyr �filenameZfileobjr r r
�
get_global# s #(r Zar_SYZbg_BGZbs_BAZca_ESZcs_CZZda_DKZde_DEZel_GRZen_USZes_ESZet_EEZfa_IRZfi_FIZfr_FRZgl_ESZhe_ILZhu_HUZid_IDZis_ISZit_ITZja_JPZkm_KHZko_KRZlt_LTZlv_LVZmk_MKZnl_NLZnn_NOZnb_NOZpl_PLZpt_PTZro_ROZru_RUZsk_SKZsl_SIZsv_SEZth_THZtr_TRZuk_UA)'ZarZbg�bsZcaZcsZdaZdeZel�enZesZetZfaZfi�frZglZheZhu�id�is�itZjaZkmZko�ltZlvZmk�nlZnnZnoZplZptZroZruZskZslZsvZthZtrZukc @ s e Zd ZdZdd� ZdS )r z[Exception thrown when a locale is requested for which no locale data
is available.
c C s t �| d| � || _dS )zjCreate the exception.
:param identifier: the identifier string of the unsupported locale
zunknown locale %rN)� Exception�__init__�
identifier)�selfr'