Hacked By AnonymousFox

Current Path : /proc/thread-self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/usr/lib64/python2.7/Tools/scripts/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/usr/lib64/python2.7/Tools/scripts/byext.pyo

�
�fc@sddZddlmZddlZddlZddd��YZd�Zedkr`e�ndS(	s"Show file statistics by extension.i����(tprint_functionNtStatscBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs
i|_dS(N(tstats(tself((s+/usr/lib64/python2.7/Tools/scripts/byext.pyt__init__scCs�xy|D]q}tjj|�r/|j|�qtjj|�rQ|j|�qtjjd|�|j	ddd�qWdS(NsCan't find %s
s<???>tunknowni(
tostpathtisdirtstatdirtisfiletstatfiletsyststderrtwritetaddstats(Rtargstarg((s+/usr/lib64/python2.7/Tools/scripts/byext.pytstatargss
cCs|jddd�yttj|��}WnDtjk
rr}tjjd||f�|jddd�dSXx�|D]�}|jd�r�qzn|j	d�r�qzntj
j||�}tj
j|�r�|jdd	d�qztj
j
|�r	|j|�qz|j|�qzWdS(
Ns<dir>tdirsisCan't list %s: %s
t
unlistables.#t~s<lnk>tlinks(RtsortedRtlistdirterrorRR
Rt
startswithtendswithRtjointislinkRR	R(Rtdirtnamesterrtnametfull((s+/usr/lib64/python2.7/Tools/scripts/byext.pyR	s$
c
Cs�tjj|�\}}tjj|�\}}||krEd}ntjj|�}|sfd}n|j|dd�yt|d�}WnAtk
r�}tj	j
d||f�|j|dd�dSX|j�}|j�|j|dt
|��d	|kr"|j|d
d�dS|s>|j|dd�n|j�}|j|dt
|��~|j�}	|j|d
t
|	��dS(Nts<none>tfilesitrbsCan't open %s: %s
t
unopenabletbytesstbinarytemptytlinestwords(RRtsplitexttsplittnormcaseRtopentIOErrorRR
Rtreadtclosetlent
splitlines(
RtfilenametheadtexttbasetfR tdataR*R+((s+/usr/lib64/python2.7/Tools/scripts/byext.pyR.s6		
cCs3|jj|i�}|j|d�|||<dS(Ni(Rt
setdefaulttget(RR7tkeytntd((s+/usr/lib64/python2.7/Tools/scripts/byext.pyRLscst|jj��}i}x"|D]}|j|j|�q"Wt|j���i�tg|D]}t|�^qb��d<d}i|jd<x��D]�}d}t|t|��}xb|D]Z}|j|j|�}|dkr�d}	ntd|�}	||7}t||	�}q�Wt|tt|���}|�|<||jd|<q�W|j	d�x|D]}||j|d<qoW�j
dd���fd�}
|
�x]|D]U}xE�D]=}|j|j|d�}td�||fd	d
�q�Wt�q�W|
�dS(NR7itTOTALis%dcs:x,�D]$}td�||fdd�qWt�dS(Ns%*stendt (tprint(tcol(tcolstcolwidth(s+/usr/lib64/python2.7/Tools/scripts/byext.pytprintheaderms
"R#s%*sRARB(RRtkeystupdatetmaxR3R<tNonetstrtappendtinsertRC(RtextstcolumnsR7tminwidthRDttotaltcwtvaluetwRG((RERFs+/usr/lib64/python2.7/Tools/scripts/byext.pytreportPsD
)


	





"(t__name__t
__module__RRR	RRRV(((s+/usr/lib64/python2.7/Tools/scripts/byext.pyR
s		
			cCsFtjd}|s"tjg}nt�}|j|�|j�dS(Ni(RtargvRtcurdirRRRV(Rts((s+/usr/lib64/python2.7/Tools/scripts/byext.pytmainys
	
t__main__((t__doc__t
__future__RRRRR\RW(((s+/usr/lib64/python2.7/Tools/scripts/byext.pyt<module>so	

Hacked By AnonymousFox1.0, Coded By AnonymousFox