HEX
Server: Apache
System: Linux vpshost11508.publiccloud.com.br 5.15.179-grsec-vpshost-10.lc.el8.x86_64 #1 SMP Mon Apr 7 12:04:45 -03 2025 x86_64
User: wicomm2 (10002)
PHP: 8.3.0
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //lib64/python2.7/uu.pyo
�
_Ofc@s�dZddlZddlZddlZdddgZdefd��YZddd�Zdddd	�Z	d
�Z
edkr�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.7/uu.pyR'scCs�g}z�|dkr!tj}n�t|t�r�|dkrQtjj|�}n|dkr�ytj|�j	}Wq�t
k
r�q�Xnt|d�}|j|�n|dkr�tj
}n.t|t�r�t|d�}|j|�n|dkrd}n|dkrd}n|jdd�}|jdd�}|jd	|d
@|f�|jd�}x;t|�dkr�|jtj|��|jd�}qjW|jd
�Wdx|D]}|j�q�WXdS(s
Uuencode filet-trbtwbi�s
s\ns
s\rsbegin %o %s
i�i-is 
end
N(tsyststdint
isinstancet
basestringtNonetostpathtbasenametstattst_modetAttributeErrortopentappendtstdouttreplacetwritetreadtlentbinasciitb2a_uutclose(tin_filetout_filetnametmodetopened_filestdatatf((s/usr/lib64/python2.7/uu.pyR*sB
		
ic
Cs�g}|dkrtj}n+t|t�rIt|�}|j|�nz^x�tr�|j�}|svtd��n|j	d�s�qOn|j
dd�}t|�dkrO|ddkrOyt|dd	�PWq�t
k
r�q�XqOqOW|dkr4|dj�}tjj|�r4td
|��q4n|dkrVt|dd	�}n|dkrntj}n_t|t�r�t|d�}ytjj||�Wntk
r�nX|}|j|�n|j�}x�|r�|j�dkr�ytj|�}	Wnjtjk
rs}
t|d�d
d@ddd}tj|| �}	|sttjjd|
�qtnX|j|	�|j�}q�W|s�td��nWdx|D]}|j�q�WXdS(sDecode uuencoded fileRs'No valid begin line found in input filetbegint iiiiis"Cannot overwrite existing file: %sRtendi i?iisWarning: %s
sTruncated input fileN(RR	R
RRRtTruetreadlineRt
startswithtsplitRtintt
ValueErrorRtrstripR
RtexistsRtchmodRtstripRta2b_uutordtstderrRR(
RRR tquietR!thdrt	hdrfieldstfptsR"tvtnbytesR#((s/usr/lib64/python2.7/uu.pyRasf	"

$

cCs�ddl}|jdd�}|jddddd	d
dtdd
�|jddddd	ddtdd
�|j�\}}t|�dkr�|jd�tjd�ntj	}tj
}t|�dkr�|d}nt|�dkr�|d}n|jrb|jrRt
|t�r2t|d�}qRtjdGdGHtjd�nt||�nW|jr�t
|t�r�t|d�}q�tjdGdGHtjd�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 argumentsiitws: cannot do -t to stdouttrs: cannot do -t from stdin(toptparsetOptionParsert
add_optiontFalset
parse_argsRterrorRtexitR	RRRAR
RRtargvR(RDtparsertoptionstargstinputtoutput((s/usr/lib64/python2.7/uu.pyttest�s6((
		

			t__main__(t__doc__RR
Rt__all__t	ExceptionRRRRRQR(((s/usr/lib64/python2.7/uu.pyt<module>s7D	%