IP : 18.218.200.164Hostname : host45.registrar-servers.comKernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64Disable Function : None :) OS : Linux
PATH:
/
home/
../
lib64/
python3.8/
__pycache__/
gettext.cpython-38.opt-1.pyc/
/
U
e5dj�@s�dZddlZddlZddlZddlZddddddd d ddd ddddddddddgZej�ejdd�Z e� dejejB�Z dd�Zdd�ZdZd d!�eed"�D�Zd#d$d%d&�ZdGd(d)�Zd*d+�Zd,d-�Zd.d/�ZGd0d�d�ZGd1d�de�ZdHd3d�ZiZd4gZdddd2efd5d�Zdedfd6d�Ziaiad7a dId8d �Z!dJd9d �Z"dKd:d�Z#d;d�Z$d<d�Z%d=d �Z&d>d�Z'd?d�Z(d@d�Z)dAd�Z*dBd�Z+dCd�Z,dDd�Z-dEd�Z.dFd�Z/eZ0dS)La�Internationalization and localization support.
This module provides internationalization (I18N) and localization (L10N) support for your Python programs by providing an interface to the GNU gettext message catalog library.
I18N refers to the operation by which a program is made aware of multiple languages. L10N refers to the adaptation of your program, once internationalized, to the local language and cultural habits.
�N�NullTranslations�GNUTranslations�Catalog�find�translation�install� textdomain�bindtextdomain�bind_textdomain_codeset�dgettext� dngettext�gettext�lgettext� ldgettext� ldngettext� lngettext�ngettext�pgettext� dpgettext� npgettext� dnpgettextZshare�localea� (?P<WHITESPACES>[ \t]+) | # spaces and horizontal tabs (?P<NUMBER>[0-9]+\b) | # decimal integer (?P<NAME>n\b) | # only n is allowed (?P<PARENTHESIS>[()]) | (?P<OPERATOR>[-*/%+?:]|[><!]=?|==|&&|\|\|) | # !, *, /, %, +, -, <, >, # <=, >=, ==, !=, &&, ||, # ? : # unary and bitwise ops # not allowed (?P<INVALID>\w+|.) # invalid token ccsPt�t|�D]8}|j}|dkr q|�|�}|dkr>td|��|VqdVdS)NZWHITESPACESZINVALIDz invalid token in plural form: %s�)�re�finditer�_token_pattern� lastgroup�group� ValueError)�pluralZmoZkind�value�r!�/usr/lib64/python3.8/gettext.py� _tokenizeWs r#cCs|rtd|�Std�SdS)Nz#unexpected token in plural form: %szunexpected end of plural form)r)r r!r!r"�_errorbsr$))�||)�&&)z==z!=)�<�>z<=z>=)�+�-)�*�/�%cCs i|]\}}|D] }||�qqSr!r!)�.0�iZops�opr!r!r"� <dictcomp>ps r1��or�andz//)r%r&r,���cCs�d}t|�}|dkr&|d7}t|�}q|dkrXt|�\}}d||f}|dkr�td��nP|dkrnd ||f}n:zt|d �}Wntk r�t|�d�YnXd||f}t|�}d}|tk�rt|}||krҐq|d kr�|d kr�d|}t�||�}t||d�\} }d||| f}|}q�||k�r4dk�r@nnd|}|dk�r�|dk�r�t|d�\} }|dk�rtt|��t|�\}}d| ||f}|dk�r�d|}||fS)Nr�!znot �(z%s(%s)�)z%unbalanced parenthesis in plural form�nz%s%s� z%s%d�d)��z(%s)r2z%s %s %sr=�?r�:z%s if %s else %s)�next�_parser�intr$�_binary_ops� _c2py_ops�get)�tokensZpriority�result�nexttok�subr �jr/r0�rightZif_trueZif_falser!r!r"rAssP
rAcCsZzt|�}Wn(tk r4td|jjf�d�YnXddl}|�d|jjftd�|S)Nz'Plural value must be an integer, got %srr=)�round� TypeError� __class__�__name__�warnings�warn�DeprecationWarning)r9r/rPr!r!r"�_as_int�s ����rScCs�t|�dkrtd��z|tt|��\}}|r2t|��d}|D]6}|dkr`|d7}|dkrptd��q:|dkr:|d8}q:d ti}td ||�|dWStk r�td��YnXdS) z�Gets a C expression as used in PO files for plural forms and returns a Python function that implements an equivalent expression. i�z"plural form expression is too longrr7r2�z%plural form expression is too complexr8rSz�if True: def func(n): if not isinstance(n, int): n = _as_int(n) return int(%s) �funcN)�lenrrAr#r$rS�exec�RecursionError)rrGrHZdepth�c�nsr!r!r"�c2py�s.
rgc@s�eZdZddd�Zdd�Zdd�Zdd �Zd d�Zdd �Zdd�Z dd�Z dd�Zdd�Zdd�Z dd�Zdd�Zddd�ZdS) rNcCs.i|_d|_d|_d|_|dk r*|�|�dS�N)�_info�_charset�_output_charset� _fallbackrA��self�fpr!r!r"�__init__�szNullTranslations.__init__cCsdSrhr!rmr!r!r"rAszNullTranslations._parsecCs|jr|j�|�n||_dSrh)rl�add_fallback)rn�fallbackr!r!r"rq szNullTranslations.add_fallbackcCs|jr|j�|�S|Srh)rlr )rn�messager!r!r"r szNullTranslations.gettextc Csrddl}|�dtd�|jrR|���(|�ddt�|j�|�W5QR�SQRX|jrd|�|j�S|�t � ��S)Nr�/lgettext() is deprecated, use gettext() insteadr\�ignore�.*\blgettext\b.*)rPrQrRrl�catch_warnings�filterwarningsrrk�encoder�getpreferredencoding)rnrsrPr!r!r"rs� �zNullTranslations.lgettextcCs*|jr|j�|||�S|dkr"|S|SdS�Nr2)rlr)rn�msgid1�msgid2r9r!r!r"r"s zNullTranslations.ngettextc Cs�ddl}|�dtd�|jrV|���,|�ddt�|j�|||�W5QR�SQRX|dkrd|}n|}|jrz|�|j�S|�t � ��S)Nr�1lngettext() is deprecated, use ngettext() insteadr\ru�.*\blngettext\b.*r2)rPrQrRrlrwrxrrkryrrz�rnr|r}r9rP�tmsgr!r!r"r*s"� �"zNullTranslations.lngettextcCs|jr|j�||�S|Srh)rlr)rn�contextrsr!r!r"r;szNullTranslations.pgettextcCs,|jr|j�||||�S|dkr$|S|SdSr{)rlr)rnr�r|r}r9r!r!r"r@s zNullTranslations.npgettextcCs|jSrh)ri�rnr!r!r"�infoHszNullTranslations.infocCs|jSrh)rjr�r!r!r"�charsetKszNullTranslations.charsetcCsddl}|�dtd�|jS)Nrzoutput_charset() is deprecatedr\�rPrQrRrk)rnrPr!r!r"�output_charsetNs�zNullTranslations.output_charsetcCs ddl}|�dtd�||_dS)Nrz"set_output_charset() is deprecatedr\r�)rnr�rPr!r!r"�set_output_charsetTs�z#NullTranslations.set_output_charsetcCsRddl}|j|jd<|dk rNddddddh}|t|�@D]}t||�|j|<q8dS) Nrr_r rrrrr)�builtinsr �__dict__�set�getattr)rn�namesr�Zallowed�namer!r!r"rZs�zNullTranslations.install)N)N)rO� __module__�__qualname__rprArqr rrrrrr�r�r�r�rr!r!r!r"r�s
c@s\eZdZdZdZdZdZdd�Zdd�Zd d �Z dd�Z d d�Zdd�Zdd�Z dd�ZdS)rl�*l�$<z%s%s)rr2cCs|d?|d@fS)z/Returns a tuple of major version, minor version�i��r!)rn�versionr!r!r"� _get_versionspszGNUTranslations._get_versionsc"Cs�ddlm}t|dd�}i|_}dd�|_|��}t|�}|d|dd ��d}||jkr||d |d d��\}} } }d}n6||jkr�|d |d d��\}} } }d}nt dd|��|� |�\} }| |jkr�t ddt| �|��t d| �D�]}|||| | d��\}}||}|||||d��\}}||}||k�r`||k�r`|||�}|||�}nt dd|��|dk�rld}|�d�D]�}|����}|�s��q�|�d��r�|�d��r��q�d}}d|k�r|�dd�\}}|����}|��}||j|<|}n|�r|j|d|7<|dk�r8|�d�d|_n0|dk�r�|�d�}|d�d�d}t|�|_�q�|j�pvd}d|k�r�|�d�\}} |�d�}t||�}t|�D]\}}!t|!|�|||f<�q�nt||�|t||�<| d7} |d7}q�dS)z8Override this method to support alternative .mo formats.r)�unpackr�rcSst|dk�Sr{)rB)r9r!r!r"�<lambda>}�z(GNUTranslations._parse.<locals>.<lambda>z<INr=z<4IrTz<IIz>4Iz>IIzBad magic numberzBad version number �zFile is corrupt� z #-#-#-#-#r?r2� zcontent-typezcharset=zplural-forms�;zplural=�ascii�)Zstructr�r��_catalogr�readrV�LE_MAGIC�BE_MAGIC�OSErrorr��VERSIONS�strr`�split�decode�strip� startswith�endswith�lowerrirjr[� enumerate)"rnror��filenameZcatalogZbufZbuflen�magicr�ZmsgcountZ masteridxZtransidxZiiZ major_versionZ minor_versionr/ZmlenZmoffZmendZtlenZtoffZtend�msgr�ZlastkZb_item�item�k�vrr�r|r}�xr!r!r"rAtsv
c Cs�ddl}|�dtd�t�|�}z<|���*|�ddt�t|t�|d�|d�}W5QRXWn&t k r�|� |pzt���YSX|���&|�ddt�|� |�W5QR�SQRXdS)Nrz1ldgettext() is deprecated, use dgettext() insteadr\ru�.*\bparameter codeset\b.*�rerv)rPrQrRr�rErwrxrr�r�ryrrzr)r�rsrPrer�r!r!r"r�s&�
�$ �cCsRzt|t�|d��}Wn,tk rB|dkr6|YS|YSYnX|�|||�Sr{)rr�rEr�r)r�r|r}r9r�r!r!r"r�sc Cs�ddl}|�dtd�t�|�}z<|���*|�ddt�t|t�|d�|d�}W5QRXWn8t k r�|dkrz|}n|}|� |p�t���YSX|���*|�ddt�|� |||�W5QR�SQRXdS) Nrz3ldngettext() is deprecated, use dngettext() insteadr\rur�r�r2r)rPrQrRr�rErwrxrr�r�ryrrzr)r�r|r}r9rPrer�r�r!r!r"r�s,�