Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python38/lib64/python3.8/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python38/lib64/python3.8/__pycache__/gettext.cpython-38.opt-2.pyc
U

��,aj�@s�ddlZddlZddlZddlZdddddddd	d
ddd
dddddddddgZej�ejdd�Ze�	dej
ejB�Zdd�Z
dd�ZdZdd �eed!�D�Zd"d#d$d%�ZdFd'd(�Zd)d*�Zd+d,�Zd-d.�ZGd/d�d�ZGd0d�de�ZdGd2d�ZiZd3gZdddd1efd4d�Zdedfd5d�Ziaiad6adHd7d�Z dId8d	�Z!dJd9d
�Z"d: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.eZ/dS)K�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|��|VqdVdS)NZWHITESPACESZINVALIDz invalid token in plural form: %s�)�re�finditer�_token_pattern�	lastgroup�group�
ValueError)�pluralZmoZkind�value�r!�,/opt/alt/python38/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"�_errorbsr$))�||)�&&)z==z!=)�<�>z<=z>=)�+�-)�*�/�%cCs i|]\}}|D]
}||�qqSr!r!)�.0�iZops�opr!r!r"�
<dictcomp>ps
r1��or�andz//)r%r&r,���cCs�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




rAcCsZzt|�}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)Ni�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)
            �func)�lenrrAr#r$rS�exec�RecursionError)rrGrHZdepth�c�nsr!r!r"�c2py�s.

��
r[c
Cs4t�|�}d}d}d}d}|�d�}|dkrN||d�}|d|�}||O}nd}|�d�}|dkr�||d�}|d|�}||O}nd}|�d�}|dkr�||d�}|d|�}||O}nd}|}	g}
t|d�D]P}||@s�|	}||@r�||7}||@�r
||7}||@�r||7}|
�|�q�|
��|
S)	Nr2�r=r�@r�.�_)r�	normalizer�range�append�reverse)
ZlocZCOMPONENT_CODESETZCOMPONENT_TERRITORYZCOMPONENT_MODIFIER�mask�posZmodifier�codesetZ	territoryZlanguageZretr/�valr!r!r"�_expand_lang�sJ









rhc@s�eZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zddd�ZdS) rNcCs.i|_d|_d|_d|_|dk	r*|�|�dS�N)�_info�_charset�_output_charset�	_fallbackrA��self�fpr!r!r"�__init__�szNullTranslations.__init__cCsdSrir!rnr!r!r"rAszNullTranslations._parsecCs|jr|j�|�n||_dSri)rm�add_fallback)ro�fallbackr!r!r"rr
szNullTranslations.add_fallbackcCs|jr|j�|�S|Sri)rmr
)ro�messager!r!r"r
szNullTranslations.gettextc
Csrddl}|�dtd�|jrR|���(|�ddt�|j�|�W5QR�SQRX|jrd|�|j�S|�t	�
��S)Nr�/lgettext() is deprecated, use gettext() insteadr\�ignore�.*\blgettext\b.*)rPrQrRrm�catch_warnings�filterwarningsrrl�encoder�getpreferredencoding)rortrPr!r!r"rs�
�zNullTranslations.lgettextcCs*|jr|j�|||�S|dkr"|S|SdS�Nr2)rmr)ro�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\rv�.*\blngettext\b.*r2)rPrQrRrmrxryrrlrzrr{�ror}r~r9rP�tmsgr!r!r"r*s"�
�"zNullTranslations.lngettextcCs|jr|j�||�S|Sri)rmr)ro�contextrtr!r!r"r;szNullTranslations.pgettextcCs,|jr|j�||||�S|dkr$|S|SdSr|)rmr)ror�r}r~r9r!r!r"r@s
zNullTranslations.npgettextcCs|jSri)rj�ror!r!r"�infoHszNullTranslations.infocCs|jSri)rkr�r!r!r"�charsetKszNullTranslations.charsetcCsddl}|�dtd�|jS)Nrzoutput_charset() is deprecatedr\�rPrQrRrl)rorPr!r!r"�output_charsetNs�zNullTranslations.output_charsetcCs ddl}|�dtd�||_dS)Nrz"set_output_charset() is deprecatedr\r�)ror�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)ro�namesr�Zallowed�namer!r!r"rZs�zNullTranslations.install)N)N)rO�
__module__�__qualname__rqrArrr
rrrrrr�r�r�r�rr!r!r!r"r�s

c@s\eZdZdZdZdZdZdd�Zdd�Zd	d
�Z	dd�Z
d
d�Zdd�Zdd�Z
dd�ZdS)rl�*l�$<z%s%s)rr2cCs|d?|d@fS)N�i��r!)ro�versionr!r!r"�
_get_versionspszGNUTranslations._get_versionsc"Cs�ddlm}t|dd�}i|_}dd�|_|��}t|�}|d|dd��d}||jkr||d	|dd
��\}}	}
}d}n6||jkr�|d|dd
��\}}	}
}d
}nt	dd|��|�
|�\}
}|
|jkr�t	ddt|
�|��t
d|	�D�]}||||
|
d��\}}||}|||||d��\}}||}||k�r`||k�r`|||�}|||�}nt	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)Nr)�unpackr�rcSst|dk�Sr|)rB)r9r!r!r"�<lambda>}�z(GNUTranslations._parse.<locals>.<lambda>z<Ir=z<4IrTz<IIz>4Iz>IIzBad magic numberzBad version number �zFile is corrupt�
z	#-#-#-#-#r?r2�
zcontent-typezcharset=zplural-forms�;zplural=�ascii�)Zstructr�r��_catalogr�readrV�LE_MAGIC�BE_MAGIC�OSErrorr��VERSIONS�strra�split�decode�strip�
startswith�endswith�lowerrjrkr[�	enumerate)"rorpr��filenameZcatalogZbufZbuflen�magicr�ZmsgcountZ	masteridxZtransidxZiiZ
major_versionZ
minor_versionr/ZmlenZmoffZmendZtlenZtoffZtend�msgr�ZlastkZb_item�item�k�vrr�r}r~�xr!r!r"rAtsv














zGNUTranslations._parsecCshddl}|�dtd�t�}|j�||�}||krH|jrD|j�|�S|}|jrZ|�	|j�S|�	t
���S)Nrrur\)rPrQrR�objectr�rErmrrlrzrr{)rortrP�missingr�r!r!r"r�s�zGNUTranslations.lgettextcCs�ddl}|�dtd�z|j||�|�f}Wn@tk
rn|jrX|j�|||�YS|dkrf|}n|}YnX|jr�|�	|j�S|�	t
���S)Nrrr\r2)rPrQrRr�r�KeyErrorrmrrlrzrr{r�r!r!r"r�s �
zGNUTranslations.lngettextcCs6t�}|j�||�}||kr2|jr.|j�|�S|S|Sri)r�r�rErmr
)rortr�r�r!r!r"r
�szGNUTranslations.gettextcCs^z|j||�|�f}Wn@tk
rX|jrB|j�|||�YS|dkrP|}n|}YnX|Sr|)r�rr�rmr)ror}r~r9r�r!r!r"r�s
zGNUTranslations.ngettextcCsF|j||f}t�}|j�||�}||krB|jr>|j�||�S|S|Sri)�CONTEXTr�r�rErmr)ror�rt�ctxt_msg_idr�r�r!r!r"rszGNUTranslations.pgettextc	Csn|j||f}z|j||�|�f}WnBtk
rh|jrR|j�||||�YS|dkr`|}n|}YnX|Sr|)r�r�rr�rmr)ror�r}r~r9r�r�r!r!r"rs
zGNUTranslations.npgettextN)rOr�r�r�r�r�r�r�rArrr
rrrr!r!r!r"rdsY	
FcCs�|dkrt}|dkrRg}dD]"}tj�|�}|r|�d�}q@qd|krR|�d�g}|D]$}t|�D]}||krf|�|�qfqZ|r�g}	nd}	|D]J}|dkr�q�tj�||dd|�}
tj�	|
�r�|r�|	�|
�q�|
Sq�|	S)N)ZLANGUAGE�LC_ALL�LC_MESSAGESZLANGr?�Cr�z%s.mo)
�_default_localedir�os�environrEr�rbrh�path�join�exists)�domain�	localedir�	languages�allZenvarrgZnelangsZlangZnelangrG�mofiler!r!r"rs8


Zunspecifiedc
Cs|dkrt}t|||dd�}|sB|r*t�Sddlm}t|d|��d}|D]�}	|tj�|	�f}
t	�
|
�}|dkr�t|	d��}t	�|
||��}W5QRXddl
}
|
�
|�}|tk	r�ddl}|�dtd�|r�|���|�d	d
t�|�|�W5QRX|dk�r|}qJ|�|�qJ|S)NT)r�r)�ENOENTz$No translation file found for domain�rbzparameter codeset is deprecatedr\rvz.*\bset_output_charset\b.*)rrr�errnor��FileNotFoundErrorr�r��abspath�
_translationsrE�open�
setdefault�copy�_unspecifiedrPrQrRrxryr�rr)r�r�r�Zclass_rsrfZmofilesr�rGr��key�trpr�rPr!r!r"rCsH�

�
�
cCst||d|d�}|�|�dS)NT)rsrf)rr)r�r�rfr�r�r!r!r"rnsZmessagescCs|dk	r|atSri)�_current_domain)r�r!r!r"r|scCs|dk	r|t|<t�|t�Sri)�_localedirsrEr�)r�r�r!r!r"r	�scCs0ddl}|�dtd�|dk	r&|t|<t�|�S)Nrz'bind_textdomain_codeset() is deprecatedr\)rPrQrR�_localecodesetsrE)r�rfrPr!r!r"r
�s�cCs:zt|t�|d��}Wntk
r.|YSX|�|�Sri)rr�rEr�r
)r�rtr�r!r!r"r�s

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\rv�.*\bparameter codeset\b.*�rfrw)rPrQrRr�rErxryrr�r�rzrr{r)r�rtrPrfr�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\rvr�r�r2r�)rPrQrRr�rErxryrr�r�rzrr{r)r�r}r~r9rPrfr�r�r!r!r"r�s,�

�$
�cCs<zt|t�|d��}Wntk
r.|YSX|�||�Sri)rr�rEr�r)r�r�rtr�r!r!r"r�s

cCsTzt|t�|d��}Wn,tk
rB|dkr6|YS|YSYnX|�||||�Sr|)rr�rEr�r)r�r�r}r~r9r�r!r!r"r�scCs
tt|�Sri)rr�)rtr!r!r"r
�sc
CsNddl}|�dtd�|���&|�ddt�tt|�W5QR�SQRXdS)Nrrur\rvz.*\bldgettext\b.*)rPrQrRrxryrr�)rtrPr!r!r"r�s�
�cCstt|||�Sri)rr�)r}r~r9r!r!r"r�sc
CsRddl}|�dtd�|���*|�ddt�tt|||�W5QR�SQRXdS)Nrrr\rvz.*\bldngettext\b.*)rPrQrRrxryrr�)r}r~r9rPr!r!r"r�s�
�cCstt||�Sri)rr�)r�rtr!r!r"r�scCstt||||�Sri)rr�)r�r}r~r9r!r!r"r�s)r5)NNF)N)N)N)0rr�r�sys�__all__r�r��base_prefixr��compile�VERBOSE�DOTALLrr#r$rCr�rDrArSr[rhrrrr�r�rrr�r�r�rr	r
rrrrrrr
rrrrrrr!r!r!r"�<module>1s��
�

1$*f7
&�
+




	


ZeroDay Forums Mini