HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //opt/alt/python36/lib64/python3.6/__pycache__/uu.cpython-36.opt-2.pyc
3

��2a��@s`ddlZddlZddlZdddgZGdd�de�Zddd�Zd
dd�Zd	d
�Ze	dkr\e�dS)�N�Error�encode�decodec@seZdZdS)rN)�__name__�
__module__�__qualname__�rr�'/opt/alt/python36/lib64/python3.6/uu.pyr'scCs\g}�z6|dkrtjj}n`t|t�rz|dkr8tjj|�}|dkrfytj|�j	}Wnt
k
rdYnXt|d�}|j|�|dkr�tj
j}nt|t�r�t|d�}|j|�|dkr�d}|dkr�d}|jdd�}|jdd�}|jd	|d
@|fjd��|jd�}x.t|�d
k�r.|jtj|��|jd�}�qW|jd�Wdx|D]}|j��qDWXdS)N�-�rb�wbi��
z\n�
z\rzbegin %o %s
i��ascii�-rs 
end
)�sys�stdin�buffer�
isinstance�str�os�path�basename�stat�st_mode�AttributeError�open�append�stdout�replace�writer�read�len�binasciiZb2a_uu�close)�in_file�out_file�name�mode�opened_files�data�frrr	r*sB









Fc
Cs:g}|dkrtjj}nt|t�r4t|d�}|j|��z�xr|j�}|sNtd��|j	d�sZq:|j
dd�}t|�dkr:|ddkr:yt|d	d
�PWq:t
k
r�Yq:Xq:W|dkr�|djd�jd�}tjj|�r�td
|��|dkr�t|d	d
�}|dk�r
tjj}nNt|t��rXt|d�}ytjj||�Wntk
�rHYnX|}|j|�|j�}x�|�r|jd�dk�rytj|�}	Wnjtjk
�r�}
zJ|ddd@ddd}tj|d|��}	|�s�tjjd|
�WYdd}
~
XnX|j|	�|j�}�qbW|�std��Wdx|D]}|j��q"WXdS)Nr
rz'No valid begin line found in input filesbegin� ��r��s 	
rz"Cannot overwrite existing file: %srsend� �?��zWarning: %s
zTruncated input file)rrrrrrr�readliner�
startswith�splitr"�int�
ValueError�rstriprrr�existsr�chmodr�stripr#Za2b_uu�stderrr r$)
r%r&r(�quietr)ZhdrZ	hdrfields�fp�sr*�v�nbytesr+rrr	rasf









"

cCs4ddl}|jdd�}|jdddddd	d
�|jddd
ddd	d
�|j�\}}t|�dkrl|jd�tjd�tjj	}tj
j	}t|�dkr�|d}t|�dkr�|d}|jr�|jr�t
|t�r�t|d�}nttjdd�tjd�t||�nD|j�r&t
|t��rt|d�}nttjdd�tjd�t||�dS)Nrz'usage: %prog [-d] [-t] [input [output]])�usagez-dz--decoderzDecode (instead of encode)?F�
store_true)�dest�help�default�actionz-tz--text�textz2data is text, encoded format unix-compatible text?r-zincorrect number of argumentsr/rz: cannot do -t to stdoutrz: cannot do -t from stdin)�optparseZOptionParserZ
add_option�
parse_argsr"�errorr�exitrrrrrJrrr�print�argvr)rK�parser�options�args�input�outputrrr	�test�s6




rV�__main__)NN)NNF)
r#rr�__all__�	ExceptionrrrrVrrrrr	�<module>!s

7
F&