Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /lib64/python2.7/Tools/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/Tools/scripts/finddiv.pyc
�
[��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				

ZeroDay Forums Mini