AlkantarClanX12

Your IP : 3.144.47.115


Current Path : /proc/thread-self/root/proc/self/root/lib64/python2.7/encodings/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/lib64/python2.7/encodings/idna.pyc

�
{fc@sddlZddlZddlZddlmZejd�ZdZeed�Z	d�Z
d�Zd�Zd	ej
fd
��YZ
dejfd��YZd
ejfd��YZde
ejfd��YZde
ejfd��YZd�ZdS(i����N(t	ucd_3_2_0u[.。.。]sxn--tasciicCs}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|��qjqjWttj|�}t|�rytd�|D��rQtd��n|dsg|drytd��qyn|S(	NutNFKCsInvalid character %rcss|]}tj|�VqdS(N(t
stringpreptin_table_d2(t.0tx((s&/usr/lib64/python2.7/encodings/idna.pys	<genexpr>1ssViolation of BIDI requirement 2ii����sViolation of BIDI requirement 3(Rtin_table_b1tappendtmap_table_b2tjointunicodedatat	normalizetin_table_c12tin_table_c22tin_table_c3tin_table_c4tin_table_c5tin_table_c6tin_table_c7tin_table_c8tin_table_c9tUnicodeErrortmaptin_table_d1tany(tlabeltnewlabeltctRandAL((s&/usr/lib64/python2.7/encodings/idna.pytnamepreps2

cCs+y|jd�}Wntk
r&n3Xdt|�koDdknrM|Std��t|�}y|jd�}Wntk
r�n3Xdt|�ko�dknr�|Std��|jt�r�td��n|jd�}t|}dt|�kodknr|Std��dS(NRii@slabel empty or too longsLabel starts with ACE prefixtpunycode(tencodeRtlenRt
startswithtuace_prefixt
ace_prefix(R((s&/usr/lib64/python2.7/encodings/idna.pytToASCII<s,
"
"
"cCs&t|�dkr!td��nt|t�r9t}n3y|jd�}t}Wntk
rkt}nX|s�t|�}y|jd�}Wq�tk
r�td��q�Xn|jt	�s�t
|d�S|tt	�}|jd�}t|�}|j
�|kr"td||��n|S(Nislabel way too longRsInvalid character in IDN labelRsIDNA does not round-trip(R!Rt
isinstancetstrtTrueR tFalseRR"R$tunicodetdecodeR%tlower(Rt
pure_asciitlabel1tresulttlabel2((s&/usr/lib64/python2.7/encodings/idna.pyt	ToUnicodegs.		




tCodeccBs eZdd�Zdd�ZRS(tstrictcCs�|dkrtd|��n|s)dSg}tj|�}|rjt|d�dkrjd}|d=nd}x!|D]}|jt|��qwWdj|�|t|�fS(NR3sunsupported error handling tii����t.(R4i(RtdotstsplitR!RR%R
(tselftinputterrorsR/tlabelsttrailing_dotR((s&/usr/lib64/python2.7/encodings/idna.pyR �s

cCs�|dkrtd|��n|s)d	St|t�rJtj|�}n(t|�}t|d�|jd�}|r�t|d�dkr�d}|d=nd}g}x!|D]}|jt|��q�Wdj	|�|t|�fS(
NR3sUnsupported error handling uiRR5i����u.(ui(
RR&R*R6R7R'R!RR1R
(R8R9R:R;R<R/R((s&/usr/lib64/python2.7/encodings/idna.pyR+�s"


(t__name__t
__module__R R+(((s&/usr/lib64/python2.7/encodings/idna.pyR2�stIncrementalEncodercBseZd�ZRS(c	Cs|dkrtd|��n|s)d	Stj|�}d}|r�|ds^d}|d=q�|s�|d=|r}d}q}q�ng}d}xD|D]<}|jt|��|r�|d7}n|t|�7}q�Wdj|�|}|t|�7}||fS(
NR3sunsupported error handling R4iui����R5i(R4i(RR6R7RR%R!R
(	R8R9R:tfinalR;R<R/tsizeR((s&/usr/lib64/python2.7/encodings/idna.pyt_buffer_encode�s0



(R=R>RB(((s&/usr/lib64/python2.7/encodings/idna.pyR?�stIncrementalDecodercBseZd�ZRS(c	Cs:|dkrtd|��n|s)d
St|t�rJtj|�}n(t|�}t|d�|jd�}d}|r�|ds�d}|d=q�|s�|d=|r�d}q�q�ng}d}xD|D]<}|jt|��|r�|d	7}n|t|�7}q�Wdj	|�|}|t|�7}||fS(NR3sUnsupported error handling uiRR5i����u.i(ui(
RR&R*R6R7R'RR1R!R
(	R8R9R:R@R;R<R/RAR((s&/usr/lib64/python2.7/encodings/idna.pyt_buffer_decode�s8




(R=R>RD(((s&/usr/lib64/python2.7/encodings/idna.pyRC�stStreamWritercBseZRS((R=R>(((s&/usr/lib64/python2.7/encodings/idna.pyREstStreamReadercBseZRS((R=R>(((s&/usr/lib64/python2.7/encodings/idna.pyRFscCs@tjdddt�jdt�jdtdtdtdt�S(	NtnametidnaR R+tincrementalencodertincrementaldecodertstreamwritertstreamreader(	tcodecst	CodecInfoR2R R+R?RCRERF(((s&/usr/lib64/python2.7/encodings/idna.pytgetregentrys	(RtreRMRRtcompileR6R$R*R#RR%R1R2tBufferedIncrementalEncoderR?tBufferedIncrementalDecoderRCRERFRO(((s&/usr/lib64/python2.7/encodings/idna.pyt<module>s$	.	+	33"(