ok

Mini Shell

Direktori : /lib64/python2.7/Demo/scripts/
Upload File :
Current File : //lib64/python2.7/Demo/scripts/eqfix.pyc

�
V
�Qc@s�ddlZddlZddlZddlTddlZejjZeZej	jZ
d�Zejd�Z
d�Zd�Zd�ZddlmZid	d
6d	d6d	d6d
d6dd6dd6dd6dd6Zd�Zedkr�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/Demo/scripts/eqfix.pytmain)s
	
s^[a-zA-Z0-9_]+\.py$cCstj|�dkS(Ni(tispythonprogtmatch(tname((s*/usr/lib64/python2.7/Demo/scripts/eqfix.pytispython9scCs1td|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/Demo/scripts/eqfix.pyR<s0



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|dkrf|dkrf|d d	krft
j|d�}	|	rftjd
|	d�dkrf|d|	d}|d}t|�|j	�dSnx>|d
dkr�|j�}
|
s�Pn||
}|d}qiWt
|�}||krm|dkr:yt|d�}Wn2tk
r}|j	�td||f�dSX|jd�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
r<}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)
(topentIOErrorRRRtsplitRtNonetreadlinetclosetstringtretsearchtfixlinetseektreptreprtwritetstattchmodtST_MODERtrename(
tfilenametfRtheadttailttempnametgtlinenotlinetwordstnextlinetnewlinetstatbuf((s*/usr/lib64/python2.7/Demo/scripts/eqfix.pyR
Rs�

("






(t	tokenprogt:tifteliftwhiles
treturnt)t(t]t[t}t{t`cCs?d|kr|Sdt|�}}g}x||kr:tj||�}|dkrcdGH|G|Stjd\}}|||!}||}|r�||dkr�|d=q,tj|�r�|jt|�q,|dkr|r|| d||}|td�t|�}}q,|dkr,|r,dGH|Gq,q,W|S(Nt=is(Syntax error:)ii����s==s(Warning: '==' at top level:)(tlenRBRtregsthas_keyR(R=titntstacktjtatbttoken((s*/usr/lib64/python2.7/Demo/scripts/eqfix.pyR-�s0


 t__main__(RR+RR2R*tstderrR1RRtstdoutR/R
tcompileRRRR
ttokenizeRBRR-t__name__(((s*/usr/lib64/python2.7/Demo/scripts/eqfix.pyt<module>s$
				R	

Zerion Mini Shell 1.0