ok

Mini Shell

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

�
�fc@s�ddlZddlZddlZd�Zejd�Zejd�Zd�Zd�Zd�Z	d�Z
d	�Zed
kr�yej
e��Wq�ek
r�ej
d�q�XndS(i����NcCs�tjd}|sdGHdSi}x|D]}t||�q)WdGHt|�dGHt|�}t|�dGHt|�}t|�dGHt|�}t|�dS(	Nis usage: pdeps file.py file.py ...is--- Uses ---s--- Used By ---s--- Closure of Uses ---s--- Closure of Used By ---i(tsystargvtprocesstprintresultstinversetclosure(targsttabletargtinvtreachtinvreach((s+/usr/lib64/python2.7/Tools/scripts/pdeps.pytmains&





s^[ 	]*from[ 	]+([^ 	]+)[ 	]+s^[ 	]*import[ 	]+([^#]+)c
Csht|d�}tjj|�}|ddkr>|d }ng||<}x|j�}|sePnx8|ddkr�|j�}|s�Pn|d |}qhWtj|�dkr�tjd \\}}\}	}
n:tj|�dkrOtjd \\}}\}	}
nqO||	|
!j	d�}x6|D].}|j
�}||kr.|j|�q.q.WqOWdS(	Ntri����s.pyi����s\iit,(topentostpathtbasenametreadlinetm_importtmatchtregstm_fromtsplittstriptappend(
tfilenameRtfptmodtlisttlinetnextlinetatbta1tb1twordstword((s+/usr/lib64/python2.7/Tools/scripts/pdeps.pyRBs0
""
cCs�|j�}i}x|D]}||||<qWd}x�|r�d}xq|D]i}x`||D]T}||kr_x?||D]0}|||kr|||j|�d}q|q|Wq_q_WqNWq;W|S(Nii(tkeysR(RtmodulesR
Rtchangetmotm((s+/usr/lib64/python2.7/Tools/scripts/pdeps.pyR^s
	
cCsbi}xU|j�D]G}|j|�s5g||<nx"||D]}t|||�q@WqW|S(N(R'thas_keytstore(RR	tkeytitem((s+/usr/lib64/python2.7/Tools/scripts/pdeps.pyR{s
cCs4|j|�r#||j|�n
|g||<dS(N(R,R(tdictR.R/((s+/usr/lib64/python2.7/Tools/scripts/pdeps.pyR-�scCs�|j�}d}x#|D]}t|t|��}qW|j�x\|D]T}||}|j�|j|�GdG||kr�dGnx|D]
}|Gq�WHqIWdS(Nit:s(*)(R'tmaxtlentsorttljust(RR(tmaxlenRRtref((s+/usr/lib64/python2.7/Tools/scripts/pdeps.pyR�s





t__main__i(RtreRRtcompileRRRRRR-Rt__name__texittKeyboardInterrupt(((s+/usr/lib64/python2.7/Tools/scripts/pdeps.pyt<module>s							


Zerion Mini Shell 1.0