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 /
Filename/usr/lib64/python2.6/quopri.pyc
Size6.53 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:36
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@sèdZddddgZdZdZdZdZyd d
klZlZWne j
odZdZnXd �Z d �Z d
d�Z
d
d
d�Zd
d�Zd
d�Zd�Zd�Zd�Zedjo e�ndS(sHConversions to/from quoted-printable transport encoding as per RFC 1521.tencodetdecodet encodestringt decodestringt=iLt0123456789ABCDEFtiÿÿÿÿ(ta2b_qptb2a_qpcCsM|djo|S|djo|S|tjpd|jo
djn S(séDecide whether a particular character needs to be quoted.

The 'quotetabs' flag indicates whether embedded tabs and spaces should be
quoted. Note that line-ending tabs and spaces are always encoded, as per
RFC 1521.
s t_t t~(tESCAPE(tct quotetabstheader((s/usr/lib64/python2.6/quopri.pyt needsquotings


cCs(t|�}tt|dt|dS(sQuote a single character.i(tordR tHEX(R
ti((s/usr/lib64/python2.6/quopri.pytquote#s ic
Cs£tdj o6|i�}t|d|d|�}|i|�dS|dd�}d}x#|i�}|pPng} d}
|ddjo|d }d}
nxc|D][} t| ||�ot| �} n|o| djo| id �q«| i| �q«W|dj o||�nti | �} x>t
| �t jo*|| t d
 d d �| t d
} q7W| }q[|dj o||d |
�ndS(
s�Read 'input', apply quoted-printable encoding, and write to 'output'.

'input' and 'output' are files with readline() and write() methods.
The 'quotetabs' flag indicates whether embedded tabs and spaces should be
quoted. Note that line-ending tabs and spaces are always encoded, as per
RFC 1521.
The 'header' flag indicates whether we are encoding spaces as _ as per
RFC 1522.
RRNs
cSs||o8|ddjo'|i|d t|d�|�n:|djo|it|�|�n|i||�dS(Niÿÿÿÿs t.(twriteR(tstoutputtlineEnd((s/usr/lib64/python2.6/quopri.pyR;s
'
RiÿÿÿÿR
R iRs=
( RtNonetreadRtreadlineRRtappendt EMPTYSTRINGtjointlent MAXLINESIZE(
tinputRRRtdatatodataRtprevlinetlinetoutlinetstrippedR
tthisline((s/usr/lib64/python2.6/quopri.pyR*sB
 

 


 
cCsftdj ot|d|d|�Sddkl}||�}|�}t||||�|i�S(NRRiÿÿÿÿ(tStringIO(RRt cStringIOR*Rtgetvalue(RRRR*tinfptoutfp((s/usr/lib64/python2.6/quopri.pyRis
  c Csvtdj o0|i�}t|d|�}|i|�dSd}x|i�}|pPndt|�}}|djo]||ddjoHd} |d}x;|djo#||ddjo|d}q¦Wnd} xQ||joC||}
|
djo|o|d }|d}qä|
tjo||
}|d}qä|d|jo| o d} Pqä|d|jo-||dtjo|t}|d
}qä|d
|jo]t||d�oHt||d
�o3|tt ||d|d !��}|d }qä||
}|d}qäW| p|i|d�d}qFqF|o|i|�ndS( sÑRead 'input', apply quoted-printable decoding, and write to 'output'.
'input' and 'output' are files with readline() and write() methods.
If 'header' is true, decode underscore as space (per RFC 1522).RNRiis
s
R R
ii(
RRRRRR R tishextchrtunhex( R"RRR#R$tnewR&RtntpartialR
((s/usr/lib64/python2.6/quopri.pyRtsV
 
 "
"




&
;%

cCs`tdj ot|d|�Sddkl}||�}|�}t||d|�|i�S(NRiÿÿÿÿ(R*(RRR+R*RR,(RRR*R-R.((s/usr/lib64/python2.6/quopri.pyR�s
  cCsUd|jo
djnp7d|jo
djnpd|jodjSS(s8Return true if the character 'c' is a hexadecimal digit.t0t9tatftAtF((R
((s/usr/lib64/python2.6/quopri.pyR/«scCsÆd}x¹|D]±}d|jo
djnotd�}nfd|jo
djnotd�d}n4d|jo
djnotd�d}nP|d t|�|}q
W|S(
s.Get the integer value of a hexadecimal number.iR5R6R7R8i
R9R:i(R(RtbitsR
R((s/usr/lib64/python2.6/quopri.pyR1¯sc Csüddk}ddk}y#|i|idd�\}}WnE|ij
o6}|i|_|GHdGHdGHdGH|id�nXd}d}xB|D]:\}}|d jo
d}n|d
jo
d}q�q�W|o)|o"|i|_d GH|id�n|p
d g}nd} x¿|D]·}
|
d jo
|i} nLyt|
�} Wn8t j
o,}|ii
d
|
|f�d} q%nX|ot | |i�nt | |i|�| |ij o| i
�q%q%W| o|i| �ndS(Niÿÿÿÿittds"usage: quopri [-t | -d] [file] ...s-t: quote tabss-d: decode; default encodeiis-ts-ds -t and -d are mutually exclusivet-s%s: can't open (%s)
(tsystgetopttargvterrortstderrtstdouttexittstdintopentIOErrorRRRtclose( R>R?toptstargstmsgtdecottabstoR7tststfiletfp((s/usr/lib64/python2.6/quopri.pytmainÀsV  #  


 


t__main__N(t__doc__t__all__R R!RRtbinasciiRRt ImportErrorRRRRRRRR/R1RRt__name__(((s/usr/lib64/python2.6/quopri.pyt<module>s*    ? +   ,