Hacked By AnonymousFox

Current Path : /opt/alt/python33/lib64/python3.3/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/__pycache__/uu.cpython-33.pyc

�
��fnc@s�dZddlZddlZddlZdddgZGdd�de�Zdddd�Zddddd�Z
d	d
�Zedkr�e�ndS(
u�Implementation of the UUencode and UUdecode functions.

encode(in_file, out_file [,name, mode])
decode(in_file [, out_file, mode])
iNuErroruencodeudecodecBs|EeZdZdS(uErrorN(u__name__u
__module__u__qualname__(u
__locals__((u'/opt/alt/python33/lib64/python3.3/uu.pyuError'scCs�g}z�|dkr$tjj}n�t|t�r�|dkrTtjj|�}n|dkr�ytj	|�j
}Wq�tk
r�Yq�Xnt|d�}|j
|�n|dkr�tjj}n.t|t�r�t|d�}|j
|�n|dkrd}n|dkr d}n|jd|d@|fjd��|jd�}x;t|�d	kr�|jtj|��|jd�}qVW|jd
�Wdx|D]}|j�q�WXdS(u
Uuencode fileu-urbuwbi�ubegin %o %s
i�uasciii-is 
end
N(usysustdinubufferu
isinstanceustruNoneuosupathubasenameustatust_modeuAttributeErroruopenuappendustdoutuwriteuencodeureadulenubinasciiub2a_uuuclose(uin_fileuout_fileunameumodeuopened_filesudatauf((u'/opt/alt/python33/lib64/python3.3/uu.pyuencode*s>
		$
c
Cs�g}|dkr!tjj}n.t|t�rOt|d�}|j|�nz}x�|j�}|svtd��n|j	d�s�qUn|j
dd�}t|�dkrU|ddkrUyt|d	d
�PWq�t
k
r�Yq�XqUqU|dkr@|djd�jd�}tjj|�r@td
|��q@n|dkrbt|d	d
�}n|dkr}tjj}n`t|t�r�t|d�}ytjj||�Wntk
r�YnX|}|j|�n|j�}x�|r�|jd�dkr�ytj|�}	Wn|tjk
r�}
zY|ddd@ddd}tj|d|��}	|s�tjjd|
�nWYdd}
~
XnX|j|	�|j�}q�W|s�td��nWdx|D]}|j�q�WXdS(uDecode uuencoded fileu-urbu'No valid begin line found in input filesbegins iiiiis 	
uasciiu"Cannot overwrite existing file: %suwbsendi i?iiNuWarning: %s
uTruncated input file(usysustdinubufferu
isinstanceustruopenuappendureadlineuErroru
startswithusplitulenuintu
ValueErroruNoneurstripudecodeuosupathuexistsustdoutuchmoduAttributeErrorustripubinasciiua2b_uuustderruwriteuclose(
uin_fileuout_fileumodeuquietuopened_filesuhdru	hdrfieldsufpusudatauvunbytesuf((u'/opt/alt/python33/lib64/python3.3/uu.pyudecodeZsf"

*

cCs�ddl}|jdd�}|jddddd	d
dddd
�|jddddd	ddddd
�|j�\}}t|�dkr�|jd�tjd�ntj	j
}tjj
}t|�dkr�|d}nt|�dkr|d}n|jrl|j
r\t|t�r8t|d�}q\ttjdd�tjd�nt||�n[|j
r�t|t�r�t|d�}q�ttjdd�tjd�nt||�dS(uuuencode/uudecode main programiNuusageu'usage: %prog [-d] [-t] [input [output]]u-du--decodeudestudecodeuhelpuDecode (instead of encode)?udefaultuactionu
store_trueu-tu--textutextu2data is text, encoded format unix-compatible text?iuincorrect number of argumentsiuwbu: cannot do -t to stdouturbu: cannot do -t from stdinF(uoptparseuOptionParseru
add_optionuFalseu
parse_argsulenuerrorusysuexitustdinubufferustdoutudecodeutextu
isinstanceustruopenuprintuargvuencode(uoptparseuparseruoptionsuargsuinputuoutput((u'/opt/alt/python33/lib64/python3.3/uu.pyutest�s6((


			utestu__main__F(
u__doc__ubinasciiuosusysu__all__u	ExceptionuErroruNoneuencodeuFalseudecodeutestu__name__(((u'/opt/alt/python33/lib64/python3.3/uu.pyu<module>s0F&

Hacked By AnonymousFox1.0, Coded By AnonymousFox