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/finddiv.pyc

�
iцdc@s}dZddlZddlZddlZddlZd�Zd�Zd�Zd�Ze	dkryej
e��ndS(s	finddiv - a grep-like tool that looks for division operators.

Usage: finddiv [-l] file_or_directory ...

For directory arguments, all files in the directory whose name ends in
.py are processed, and subdirectories are processed recursively.

This actually tokenizes the files to avoid false hits in comments or
strings literals.

By default, this prints all lines containing a / or /= operator, in
grep -n style.  With the -l option specified, it prints the filename
of files that contain at least one / or /= operator.
i����Nc	Cs�y#tjtjdd�\}}Wn!tjk
rF}t|�dSX|s[td�dSd}x>|D]6\}}|dkr�tGHdS|dkrhd}qhqhWd}x)|D]!}t||�}|p�|}q�W|S(Nitlhis&at least one file argument is requiredis-hs-l(tgetopttsystargvterrortusaget__doc__tNonetprocess(	toptstargstmsgt	listnamestotatexittfilenametx((s-/usr/lib64/python2.7/Tools/scripts/finddiv.pytmains(#



cCs[tjjdtjd|f�tjjdtjd�tjjdtjd�dS(Ns%s: %s
isUsage: %s [-l] file ...
s"Try `%s -h' for more information.
(RtstderrtwriteR(R((s-/usr/lib64/python2.7/Tools/scripts/finddiv.pyR-s!cCs�tjj|�rt||�Syt|�}Wn(tk
rY}tjjd|�dSXt	j
|j�}d}xg|D]_\}}\}}	}
}|dkry|r�|GHPn||kr�|}d|||fGq�qyqyW|j
�dS(NsCan't open: %s
it/s/=s%s:%d:%s(Rs/=(tostpathtisdirt
processdirtopentIOErrorRRRttokenizetgenerate_tokenstreadlineRtclose(RRtfpRtgtlastrowttypettokentrowtcoltendtline((s-/usr/lib64/python2.7/Tools/scripts/finddiv.pyR2s$
"c	Cs�ytj|�}Wn+tjk
r@}tjjd|�dSXg}x`|D]X}tjj||�}tjj|�j	d�s�tjj
|�rN|j|�qNqNW|jd��d}x)|D]!}t||�}|p�|}q�W|S(NsCan't list directory: %s
is.pycSs%ttjj|�tjj|��S(N(tcmpRRtnormcase(Rtb((s-/usr/lib64/python2.7/Tools/scripts/finddiv.pyt<lambda>Qs(RtlistdirRRRRRtjoinR*tendswithRtappendtsortRR(	tdirRtnamesRtfilestnametfnRR((s-/usr/lib64/python2.7/Tools/scripts/finddiv.pyRFs 
-
t__main__(RRRRRRRRRt__name__R(((s-/usr/lib64/python2.7/Tools/scripts/finddiv.pyt<module>s				

Zerion Mini Shell 1.0