Your IP : 18.222.119.143


Current Path : /opt/alt/python35/lib64/python3.5/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/__pycache__/py_compile.cpython-35.opt-2.pyc



���]
�@s�ddlZddlZddlZddlZddlZddlZddlZdddgZGdd�de	�Z
dddddd�Zdd	d�Ze
d
kr�eje��dS)�N�compile�main�PyCompileErrorc@s+eZdZddd�Zdd�ZdS)r�cCs�|j}|tkrIdjtj||��}|jdd|�}nd||f}tj||pk||||�||_||_	||_
|p�||_dS)NrzFile "<string>"z	File "%s"z
Sorry: %s: %s)�__name__�SyntaxError�join�	traceback�format_exception_only�replace�	Exception�__init__�
exc_type_name�	exc_value�file�msg)�self�exc_typerrrr�tbtext�errmsg�r�//opt/alt/python35/lib64/python3.5/py_compile.pyr
-s				zPyCompileError.__init__cCs|jS)N)r)rrrr�__str__=szPyCompileError.__str__N)r�
__module__�__qualname__r
rrrrrrsF�cCs|dkr]|dkrK|dkr*|nd}tjj|d|�}ntjj|�}tjj|�r�d}t|j|���n@tjj|�r�tjj	|�r�d}t|j|���tj
jd|�}|j|�}y"|j
||p|d|�}	Wnjtk
r}
zJt|
j|
|p=|�}|rR|�ntjj|jd	�dSWYdd}
~
XnXy)tjj|�}|r�tj|�Wntk
r�YnX|j|�}
tjj|	|
d
|
d�}tjj|�}tjj|||�|S)Nrrr�optimizationzc{} is a symlink and will be changed into a regular file if import writes a byte-compiled file to itzk{} is a non-regular file and will be changed into a regular one if import writes a byte-compiled file to itz<py_compile>�	_optimize�
�mtime�size)�	importlib�util�cache_from_source�os�path�islink�FileExistsError�format�exists�isfile�	machinery�SourceFileLoader�get_data�source_to_coderr�	__class__�sys�stderr�writer�dirname�makedirs�
path_stats�_bootstrap_external�_code_to_bytecode�
_calc_mode�
_write_atomic)r�cfile�dfile�doraise�optimizerr�loader�source_bytes�code�err�py_excr3�source_stats�bytecode�moderrrrAsF)%
	
	cCsh|dkrtjdd�}d}|dgkr�x-tjj�}|sMP|jd�}yt|dd�Wq7tk
r�}z"d}tjjd|j	�WYdd}~Xq7t
k
r�}zd}tjjd|�WYdd}~Xq7Xq7Wnjxg|D]_}yt|dd�Wqtk
r_}z"d}tjjd|j	�WYdd}~XqXqW|S)Nrr�-rr<Tz%s
)r0�argv�stdin�readline�rstriprrr1r2r�OSError)�args�rv�filename�errorrrrr�s0).
.�__main__���)Zimportlib._bootstrap_externalr!Zimportlib.machinery�importlib.utilr$Zos.pathr0r	�__all__rrrrr�exitrrrr�<module>s0R&

?>