b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 172.67.192.52 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 / encodings /
Filename/usr/lib64/python2.6/encodings/punycode.pyc
Size7.9 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 09:45
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@sdZddkZd�Zd�Zd�Zd�Zd�ZdZd �Zd
�Z d �Z
d �Z d
�Z d�Z
d�Zdeifd��YZdeifd��YZdeifd��YZdeeifd��YZdeeifd��YZd�ZdS(sX Codec for the Punicode encoding, as specified in RFC 3492

Written by Martin v. Löwis.
iÿÿÿÿNcCs}g}h}x<|D]4}t|�djo|i|�qd||<qW|i�}|i�di|�id�|fS(s 3.1 Basic code point segregationi�ittascii(tordtappendtkeystsorttjointencode(tstrtbasetextendedtc((s*/usr/lib64/python2.6/encodings/punycode.pyt segregate s 
cCs<d}x/|D]'}t|�|jo|d7}q
q
W|S(s@Return the length of str, considering only characters below max.ii(R(RtmaxtresR ((s*/usr/lib64/python2.6/encodings/punycode.pyt
selective_lens cCsst|�}x`|d7}||jodS||}||jo|d|fS||jo|d7}qqdS(sReturn a pair (index, pos), indicating the next occurrence of
char in str. index is the position of the character considering
only ordinals up to and including char, and pos is the position in
the full string. index/pos is the starting position in the full
string.iiÿÿÿÿN(iÿÿÿÿiÿÿÿÿ(tlen(RtchartindextpostlR ((s*/usr/lib64/python2.6/encodings/punycode.pytselective_find s 




c CsÂd}g}d}x©|D]¡}d}}t|�}t||�} | d||}
x[t||||�\}}|djoPn|
||7}
|i|
d�|}d}
qY|}qW|S(s3.2 Insertion unsort codingi�iÿÿÿÿii(RRRR( RR
toldchartresulttoldindexR RRRtcurlentdelta((s*/usr/lib64/python2.6/encodings/punycode.pytinsertion_unsort2s&
 
 
cCs:d|d|}|djodS|djodS|S(Ni$ii((tjtbiasR((s*/usr/lib64/python2.6/encodings/punycode.pytTHs 

t$abcdefghijklmnopqrstuvwxyz0123456789cCs�g}d}xrt||�}||jo|it|�|S|it|||d|�||d|}|d7}qdS(s(3.3 Generalized variable-length integersii$iN(RRtdigits(tNRRRtt((s*/usr/lib64/python2.6/encodings/punycode.pytgenerate_generalized_integerPs
!cCsv|o|d}n |d}|||7}d}x&|djo|d}|d7}q6W|d||d}|S(Ni¼iiiÇi#i$i&((Rtfirsttnumcharst divisionsR((s*/usr/lib64/python2.6/encodings/punycode.pytadapt]s


cCsrg}d}xVt|�D]H\}}t||�}|i|�t||dj||d�}qWdi|�S(s3.4 Bias adaptationiHiiR(t enumerateR#textendR'R(tbaselentdeltasRRtpointsRts((s*/usr/lib64/python2.6/encodings/punycode.pytgenerate_integersls

$cCs]t|�\}}|id�}t||�}tt|�|�}|o
|d|S|S(NRt-(R RRR.R(ttextR R
R+((s*/usr/lib64/python2.6/encodings/punycode.pytpunycode_encodews
c
CsId}d}d}x0yt||�}Wn8tj
o,|djo
td�n|dd fSX|d7}d|jo
djno|d}n\d|jo
djno|d }n0|djotd
||��n |d fSt||�} |||7}|| jo ||fS|d | }|d7}qd S(
s(3.3 Generalized variable-length integersiitstrictsincomplete punicode stringiAiZi0i9is Invalid extended code point '%s'i$N(Rt
IndexErrort UnicodeErrortNoneR(
R
textposRterrorsRtwRRtdigitR"((s*/usr/lib64/python2.6/encodings/punycode.pytdecode_generalized_number�s2





 c Csd}d}d}d}xú|t|�joæt||||�\}}|d
jo|S||d7}||t|�d7}|djo.|djotd|�ntd �}n|t|�d}|| t|�||}t||djt|��}|}qW|S( s3.2 Insertion unsort codingi�iÿÿÿÿiHiiiÿÿR2sInvalid character U+%xt?N(RR:R5R4RtunichrR'( R R
R7RRRR6tnewposR((s*/usr/lib64/python2.6/encodings/punycode.pytinsertion_sort s* 


 cCsr|id�}|djod}|}n|| }||d}t|d|�}|i�}t|||�S(NR/iÿÿÿÿRiR(trfindtunicodetupperR>(R0R7RR R
((s*/usr/lib64/python2.6/encodings/punycode.pytpunycode_decode¹s


 tCodeccBs eZdd�Zdd�ZRS(R2cCst|�}|t|�fS(N(R1R(tselftinputR7R((s*/usr/lib64/python2.6/encodings/punycode.pyRÉs cCs=|djotd|�nt||�}|t|�fS(NR2treplacetignoresUnsupported error handling (sstrictsreplacesignore(R4RBR(RDRER7R((s*/usr/lib64/python2.6/encodings/punycode.pytdecodeÍs
(t__name__t
__module__RRH(((s*/usr/lib64/python2.6/encodings/punycode.pyRCÇs tIncrementalEncodercBseZed�ZRS(cCs
t|�S(N(R1(RDREtfinal((s*/usr/lib64/python2.6/encodings/punycode.pyRÔs(RIRJtFalseR(((s*/usr/lib64/python2.6/encodings/punycode.pyRKÓstIncrementalDecodercBseZed�ZRS(cCs4|idjotd|i�nt||i�S(NR2RFRGsUnsupported error handling (sstrictsreplacesignore(R7R4RB(RDRERL((s*/usr/lib64/python2.6/encodings/punycode.pyRHØs(RIRJRMRH(((s*/usr/lib64/python2.6/encodings/punycode.pyRN×st StreamWritercBseZRS((RIRJ(((s*/usr/lib64/python2.6/encodings/punycode.pyROÝst StreamReadercBseZRS((RIRJ(((s*/usr/lib64/python2.6/encodings/punycode.pyRPàscCs@tidddt�idt�idtdtdtdt�S( NtnametpunycodeRRHtincrementalencodertincrementaldecodert streamwritert streamreader( tcodecst CodecInfoRCRRHRKRNRORP(((s*/usr/lib64/python2.6/encodings/punycode.pyt getregentryås   (t__doc__RWR RRRRR R#R'R.R1R:R>RBRCRKRNRORPRY(((s*/usr/lib64/python2.6/encodings/punycode.pyt<module>s(