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 : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/uu.pyo
Size4.14 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:29
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@s�dZddkZddkZddkZdddgZdefd��YZddd�Zdddd �Z d
�Z
e d jo e
�ndS( s�Implementation of the UUencode and UUdecode functions.

encode(in_file, out_file [,name, mode])
decode(in_file [, out_file, mode])
iÿÿÿÿNtErrortencodetdecodecBseZRS((t__name__t
__module__(((s/usr/lib64/python2.6/uu.pyR'scCs�|djo
ti}n�t|t�os|d
jotii|�}n|d
jo0yti|�i }Wq�t
j
oq�Xnt |d�}n|djo
ti }n$t|t�ot |d�}n|d
jo
d}n|d
jo
d}n|i
d|d@|f�|id�}x=t|�djo)|i
ti|��|id�}q5W|i
d �d
S( s
Uuencode filet-trbtwi¶s begin %o %s
iÿi-is
end
N(tsyststdint
isinstancet
basestringtNonetostpathtbasenametstattst_modetAttributeErrortopentstdouttwritetreadtlentbinasciitb2a_uu(tin_filetout_filetnametmodetdata((s/usr/lib64/python2.6/uu.pyR*s4



 





ic CsÌ|djo
ti}n!t|t�ot|�}nx¬to¤|i�}|ptd��n|id�pq=n|i dd�}t
|�djoA|ddjo0yt |dd �PWqät j
oqäXq=q=W|djo;|di�}tii|�otd
|��q1n|djot |dd �}nt}|djo
ti}n]t|t�oLt|d �}ytii||�Wntj
onX|}t}n|i�}x¼|o´|i�d jo¡yti|�} Wnntij
o_}
t|d�d
d@ddd} ti|| �} |ptiid|
�q~nX|i| �|i�}qàW|ptd��n|o|i�ndS(sDecode uuencoded fileRs'No valid begin line found in input filetbegint iiiiis"Cannot overwrite existing file: %stwbtendi i?iis Warning: %s
sTruncated input fileN(RR R
R RtTruetreadlineRt
startswithtsplitRtintt
ValueErrorR trstripR
RtexiststFalseRtchmodRtstripRta2b_uutordtstderrRtclose( RRRtquietthdrt hdrfieldstopenedtfptsRtvtnbytes((s/usr/lib64/python2.6/uu.pyRSsf

 $




 $
c CsÍddk}|idd�}|iddddd d
d td d
�|iddddd dd td d
�|i�\}}t|�djo|id�tid�nti }ti
}t|�djo|d}nt|�djo|d}n|i o_|i oDt
|t�ot|d�}q]tidGdGHtid�nt ||�n\|i oDt
|t�ot|d�}q¼tidGdGHtid�nt||�dS(suuencode/uudecode main programiÿÿÿÿNtusages'usage: %prog [-d] [-t] [input [output]]s-ds--decodetdestRthelpsDecode (instead of encode)?tdefaulttactiont
store_trues-ts--textttexts2data is text, encoded format unix-compatible text?isincorrect number of argumentsiiRs: cannot do -t to stdouttrs: cannot do -t from stdin(toptparset OptionParsert
add_optionR+t
parse_argsRterrorRtexitR RRR@R
R RtargvR(RBtparsertoptionstargstinputtoutput((s/usr/lib64/python2.6/uu.pyttest�s6 ((
  


t__main__( t__doc__RR
Rt__all__t ExceptionRR RRRNR(((s/usr/lib64/python2.6/uu.pyt<module>s   )A %