Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/Tools/scripts/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/Tools/scripts/__pycache__/checkpyc.cpython-35.pyc



��Yf��@s�ddlZddlZddlmZddlZejjrLejj	n	dd�Z	dd�Z
dd�Zed	kr�e
�dS)
�N)�ST_MTIMEcCs|dS)N�c�)�pathrr�;/opt/alt/python35/lib64/python3.5/Tools/scripts/checkpyc.py�<lambda>src#Cssttj�dkr>tjddk}tjddk}n
d}}tjj}|smtdt|��x�tjD]�}yt	j
|�}Wn(tk
r�tdt|��wwYnX|s�tdt|�d�x�t|�D]�}|j
d	�r�t	jj||�}yt	j|�}Wn(tk
rKtd
t|��w�YnX|rhtdt|�d�t|�}y;t|d��%}|jd
�}	|jd
�}
WdQRXWn(tk
r�tdt|��w�YnX|	|kr	tddd�tt|��q�t|
�}|dkr7tdt|��q�||tkr�tddd�tt|��q�WqwWdS)N�z-vz-sFzUsing MAGIC wordzCannot list directoryz	Checking z...z.pyzCannot statZCheck�rb�zCannot openzBad MAGIC word in ".pyc" file�end� rzBad ".pyc" filezOut-of-date ".pyc" file���>rr
)�len�sys�argv�	importlib�util�MAGIC_NUMBER�print�reprr�os�listdir�OSError�sorted�endswith�join�stat�cache_from_source�open�read�IOError�get_longr)�verboseZsilent�MAGIC�dirname�names�name�stZname_c�fZ	magic_strZ	mtime_str�mtimerrr�mainsV



r*cCsBt|�dkrd	S|d|dd>|dd>|dd>S)
Nr
rr�����r
)r)�srrrr!>sr!�__main__)
rrrr�importlib.utilr�implementation�	cache_tagrrr*r!�__name__rrrr�<module>s/