ok

Mini Shell

Direktori : /proc/self/root/proc/thread-self/root/proc/self/root/usr/lib64/python2.7/Tools/scripts/
Upload File :
Current File : //proc/self/root/proc/thread-self/root/proc/self/root/usr/lib64/python2.7/Tools/scripts/methfix.pyc

�
iцdc@s�ddlZddlZddlZddlTejjZeZejjZ	d�Z
ejd�Zd�Z
d�Zd�ZdZeje�Zd	�Zed
kr�e
�ndS(i����N(t*cCs�d}tjds<tdtjdd�tjd�nx}tjdD]n}tjj|�rzt|�r�d}q�qJtjj|�r�t|d�d}qJt	|�rJd}qJqJWtj|�dS(Niisusage: s file-or-directory ...
is": will not process symbolic links
(
tsystargvterrtexittostpathtisdirtrecursedowntislinktfix(tbadtarg((s-/usr/lib64/python2.7/Tools/scripts/methfix.pytmain&s
	
s^[a-zA-Z0-9_]+\.py$cCstj|�dkS(Ni(tispythonprogtmatch(tname((s-/usr/lib64/python2.7/Tools/scripts/methfix.pytispython6scCs1td|f�d}ytj|�}Wn+tjk
rW}td||f�dSX|j�g}x�|D]�}|tjtjfkr�qontjj	||�}tjj
|�r�qotjj|�r�|j|�qot
|�rot|�rd}qqoqoWx#|D]}t|�rd}qqW|S(Nsrecursedown(%r)
is%s: cannot list directory: %r
i(tdbgRtlistdirterrorRtsorttcurdirtpardirRtjoinR	RtappendRR
R(tdirnameRtnamestmsgtsubdirsRtfullname((s-/usr/lib64/python2.7/Tools/scripts/methfix.pyR9s0



c
	Cs�yt|d�}Wn(tk
r=}td||f�dSXtjj|�\}}tjj|d|�}d}d}x|j�}|s�Pn|d}|dkr�d|kr�t|d�|j	�dS|dkrc|dkrc|d d	krc|dj�}	|	rct
jd
|	d�dkrc|d|	d}|d}t|�|j	�dSnx>|d
dkr�|j�}
|
s�Pn||
}|d}qfWt|�}||krj|dkr7yt|d�}Wn2tk
r}|j	�td||f�dSX|j
d�d}t|d�q~ntt|�d�td|�td|�n|dk	r~|j|�q~q~|j	�|s�dSy+tj|�}tj||td@�Wn*tjk
r�}td||f�nXytj||d�Wn*tjk
r9}td||f�nXytj||�Wn+tjk
r{}td||f�dSXdS(Ntrs%s: cannot open: %r
it@its!: contains null bytes; not fixed
is#!s	[pP]ythons: s script; not fixed
i����s\
tws%s: cannot create: %r
s:
s
s< s> i�s%s: warning: chmod failed (%r)
t~s %s: warning: backup failed (%r)
s%s: rename failed (%r)
(topentIOErrorRRRtsplitRtNonetreadlinetclosetretsearchtfixlinetseektreptreprtwritetstattchmodtST_MODERtrename(
tfilenametfRtheadttailttempnametgtlinenotlinetwordstnextlinetnewlinetstatbuf((s-/usr/lib64/python2.7/Tools/scripts/methfix.pyR
Os�

("






s8^[ 	]+def +[a-zA-Z0-9_]+ *( *self *, *(( *(.*) *)) *) *:cCs[tj|�dkrWtjdd!\\}}\}}|| |||!||}n|S(Niii(tfixprogRtregs(R<tatbtctd((s-/usr/lib64/python2.7/Tools/scripts/methfix.pyR,�s" t__main__(RR*RR1tstderrR0RRtstdoutR.R
tcompileRRRR
tfixpatRAR,t__name__(((s-/usr/lib64/python2.7/Tools/scripts/methfix.pyt<module>s 
				R	

Zerion Mini Shell 1.0