Your IP : 216.73.216.213


Current Path : /opt/alt/python34/lib64/python3.4/Tools/scripts/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/Tools/scripts/__pycache__/checkpyc.cpython-34.pyo

�
e f��@s�ddlZddlZddlmZddlZejjrLejj	n	dd�Z	dd�Z
dd�Zed	kr�e
�ndS)
�N)�ST_MTIMEcCs|dS)N�c�)�pathrr�;/opt/alt/python34/lib64/python3.4/Tools/scripts/checkpyc.py�<lambda>src"Cs�ttj�dkr>tjddk}tjddk}n
d}}tjj}|sptdt|��nx
tjD]}yt	j
|�}Wn(tk
r�tdt|��wzYnX|s�tdt|�d�nx�t|�D]�}|j
d	�r�t	jj||�}yt	j|�}Wn(tk
rQtd
t|��w�YnX|rqtdt|�d�nt|�}y:t|d��%}|jd
�}	|jd
�}
WdQXWn(tk
r�tdt|��w�YnX|	|krtddd�tt|��q�nt|
�}|dkrBtdt|��qx||tkrxtddd�tt|��qxq�q�WqzWdS)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/