ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python33/lib64/python3.3/encodings/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python33/lib64/python3.3/encodings/__pycache__/idna.cpython-33.pyc

�
nyMa�#c@sddlZddlZddlZddlmZejd�ZdZdZdd�Z	dd	�Z
d
d�ZGdd
�d
ej�ZGdd�dej
�ZGdd�dej�ZGdd�deej�ZGdd�deej�Zdd�ZdS(iN(u	ucd_3_2_0u[.。.。]sxn--uxn--cCs�g}x9|D]1}tj|�r(q
n|jtj|��q
Wdj|�}tjd|�}x�|D]�}tj|�s�tj|�s�tj	|�s�tj
|�s�tj|�s�tj|�s�tj
|�s�tj|�s�tj|�rjtd|��qjqjWdd�|D�}xd|D]\}|r(tdd�|D��r\td��n|d	sr|dr�td��q�q(q(W|S(
NuuNFKCuInvalid character %rcSsg|]}tj|��qS((u
stringprepuin_table_d1(u.0ux((u3/opt/alt/python33/lib64/python3.3/encodings/idna.pyu
<listcomp>)s	unameprep.<locals>.<listcomp>css|]}tj|�VqdS(N(u
stringprepuin_table_d2(u.0ux((u3/opt/alt/python33/lib64/python3.3/encodings/idna.pyu	<genexpr>2sunameprep.<locals>.<genexpr>uViolation of BIDI requirement 2iiuViolation of BIDI requirement 3i����(u
stringprepuin_table_b1uappendumap_table_b2ujoinuunicodedatau	normalizeuin_table_c12uin_table_c22uin_table_c3uin_table_c4uin_table_c5uin_table_c6uin_table_c7uin_table_c8uin_table_c9uUnicodeErroruany(ulabelunewlabelucuRandAL((u3/opt/alt/python33/lib64/python3.3/encodings/idna.pyunamepreps4


unameprepcCs-y|jd�}Wntk
r'Yn3Xdt|�koEdknrN|Std��t|�}y|jd�}Wntk
r�Yn3Xdt|�ko�dknr�|Std��|jt�r�td��n|jd�}t|}dt|�kodknr|Std��dS(Nuasciiii@ulabel empty or too longuLabel starts with ACE prefixupunycode(uencodeuUnicodeErrorulenunameprepu
startswithusace_prefixu
ace_prefix(ulabel((u3/opt/alt/python33/lib64/python3.3/encodings/idna.pyuToASCII>s,
"
"
"uToASCIIcCst|t�rd}n4y|jd�}d}Wntk
rKd}YnX|s�t|�}y|jd�}Wq�tk
r�td��Yq�Xn|jt�s�t	|d�S|t
t�d�}|jd�}t|�}t	|d�j
�t	|d�krtd||��n|S(NuasciiuInvalid character in IDN labelupunycodeuIDNA does not round-tripTF(u
isinstanceubytesuTrueuencodeuUnicodeErroruFalseunameprepu
startswithu
ace_prefixustrulenudecodeuToASCIIulower(ulabelu
pure_asciiulabel1uresultulabel2((u3/opt/alt/python33/lib64/python3.3/encodings/idna.pyu	ToUnicodeis*	



$u	ToUnicodecBs2|EeZdZddd�Zddd�ZdS(uCodecustrictc
Cst|dkrtd|��n|s)dSy|jd�}Wntk
rPYn�X|jd�}xI|dd�D]7}dt|�ko�dknsqtd	��qqqqWt|d
�dkr�td
��n|t|�fSt�}tj|�}|r|drd}|d=nd}x7|D]/}|rC|jd�n|jt|��q'Wt	||�t|�fS(Nustrictuunsupported error handling siuasciis.ii@ulabel empty or too longulabel too long(sii����i����i����i����(
uUnicodeErroruencodeuUnicodeEncodeErrorusplitulenu	bytearrayudotsuextenduToASCIIubytes(uselfuinputuerrorsuresultulabelsulabelutrailing_dot((u3/opt/alt/python33/lib64/python3.3/encodings/idna.pyuencode�s4
"	

uCodec.encodec
Cs|dkrtd|��n|s)d	St|t�sGt|�}nt|kr�y|jd�t|�fSWq�tk
r�Yq�Xn|jd�}|r�t|d
�dkr�d}|d=nd}g}x!|D]}|jt	|��q�Wdj
|�|t|�fS(NustrictuUnsupported error handling uiuasciis.iu.(uii����i����(uUnicodeErroru
isinstanceubytesu
ace_prefixudecodeulenuUnicodeDecodeErrorusplituappendu	ToUnicodeujoin(uselfuinputuerrorsulabelsutrailing_doturesultulabel((u3/opt/alt/python33/lib64/python3.3/encodings/idna.pyudecode�s(


uCodec.decodeN(u__name__u
__module__u__qualname__uencodeudecode(u
__locals__((u3/opt/alt/python33/lib64/python3.3/encodings/idna.pyuCodec�s%uCodeccBs |EeZdZdd�ZdS(uIncrementalEncoderc	Cs
|dkrtd|��n|s)dStj|�}d}|r�|ds^d}|d	=q�|s�|d
=|r}d}q}q�nt�}d}xQ|D]I}|r�|jd�|d7}n|jt|��|t|�7}q�W||7}|t|�7}t|�|fS(Nustrictuunsupported error handling siis.(sii����i����i����(uUnicodeErrorudotsusplitu	bytearrayuextenduToASCIIulenubytes(	uselfuinputuerrorsufinalulabelsutrailing_doturesultusizeulabel((u3/opt/alt/python33/lib64/python3.3/encodings/idna.pyu_buffer_encode�s2

	



u!IncrementalEncoder._buffer_encodeN(u__name__u
__module__u__qualname__u_buffer_encode(u
__locals__((u3/opt/alt/python33/lib64/python3.3/encodings/idna.pyuIncrementalEncoder�suIncrementalEncodercBs |EeZdZdd�ZdS(uIncrementalDecoderc	Cs0|dkrtd|��n|s)dSt|t�rJtj|�}nt|d�}|jd�}d}|r�|d	s�d}|d
=q�|s�|d=|r�d}q�q�ng}d}xD|D]<}|jt|��|r�|d7}n|t|�7}q�Wdj|�|}|t|�7}||fS(NustrictuUnsupported error handling uiuasciiu.i(uii����i����i����(	uUnicodeErroru
isinstanceustrudotsusplituappendu	ToUnicodeulenujoin(	uselfuinputuerrorsufinalulabelsutrailing_doturesultusizeulabel((u3/opt/alt/python33/lib64/python3.3/encodings/idna.pyu_buffer_decode�s6



u!IncrementalDecoder._buffer_decodeN(u__name__u
__module__u__qualname__u_buffer_decode(u
__locals__((u3/opt/alt/python33/lib64/python3.3/encodings/idna.pyuIncrementalDecoder�suIncrementalDecodercBs|EeZdZdS(uStreamWriterN(u__name__u
__module__u__qualname__(u
__locals__((u3/opt/alt/python33/lib64/python3.3/encodings/idna.pyuStreamWriter$suStreamWritercBs|EeZdZdS(uStreamReaderN(u__name__u
__module__u__qualname__(u
__locals__((u3/opt/alt/python33/lib64/python3.3/encodings/idna.pyuStreamReader'suStreamReadercCs@tjdddt�jdt�jdtdtdtdt�S(	Nunameuidnauencodeudecodeuincrementalencoderuincrementaldecoderustreamwriterustreamreader(	ucodecsu	CodecInfouCodecuencodeudecodeuIncrementalEncoderuIncrementalDecoderuStreamWriteruStreamReader(((u3/opt/alt/python33/lib64/python3.3/encodings/idna.pyugetregentry,s	ugetregentry(u
stringprepureucodecsuunicodedatau	ucd_3_2_0ucompileudotsu
ace_prefixusace_prefixunameprepuToASCIIu	ToUnicodeuCodecuBufferedIncrementalEncoderuIncrementalEncoderuBufferedIncrementalDecoderuIncrementalDecoderuStreamWriteruStreamReaderugetregentry(((u3/opt/alt/python33/lib64/python3.3/encodings/idna.pyu<module>s$0+)H#'

Zerion Mini Shell 1.0