Your IP : 3.16.50.1


Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/py_compile.cpython-310.opt-2.pyc

o

7]�f��@s�	ddlZddlZddlZddlZddlZddlZddlZddlZgd�Z	Gdd�de
�ZGdd�dej�Z
dd�Z	
	ddd�Zd
d�ZedkrNe�dSdS)�N)�compile�main�PyCompileError�PycInvalidationModec@s eZdZ	ddd�Zdd�ZdS)r�cCst|j}|turd�t�||��}|�dd|�}nd||f}t�||p%||||�||_||_	||_
|p6||_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�1/opt/alt/python310/lib64/python3.10/py_compile.pyr.s�zPyCompileError.__init__cCs|jS)N)r)rrrr�__str__>szPyCompileError.__str__N)r)r�
__module__�__qualname__rrrrrrrs
rc@seZdZdZdZdZdS)r���N)rrr�	TIMESTAMP�CHECKED_HASH�UNCHECKED_HASHrrrrrBsrcCs$tj�d�rtj�d�stjStjS)N�SOURCE_DATE_EPOCH�RPM_BUILD_ROOT)�os�environ�getrr rrrrr�_get_default_invalidation_modeHs

�r'F���c
Cs�	|durt�}|dur'|dkr!|dkr|nd}tjj||d�}ntj�|�}tj�|�r6d}t|�|���tj�	|�rKtj�
|�sKd}t|�|���tj�d|�}	|	�
|�}
z|	j|
|p^||d�}Wn-ty�}z!t|j||pr|�}
|d	kr�|r||
�tj�|
jd
�WYd}~dSd}~wwztj�|�}|r�t�|�Wn	ty�Ynw|tjkr�|	�|�}tj�||d|d�}ntj�|
�}tj�|||tjk�}tj� |�}tj�!|||�|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>)�	_optimizer�
�mtime�size)"r'�	importlib�util�cache_from_sourcer$�path�islink�FileExistsError�format�exists�isfile�	machinery�SourceFileLoader�get_data�source_to_coder
r�	__class__�sys�stderr�writer�dirname�makedirsrr�
path_stats�_bootstrap_external�_code_to_timestamp_pyc�source_hash�_code_to_hash_pycr �
_calc_mode�
_write_atomic)r�cfile�dfile�doraise�optimize�invalidation_mode�quietr)r�loader�source_bytes�code�err�py_excr?�source_stats�bytecoderD�moderrrrPsj+�

���
��

��rcCsddl}d}|j|d�}|jddddd�|jd	d
dd�|��}|jd
gkr2dd�tj��D�}n|j}|D]N}zt|dd�Wq7t	yc}z|j
rR|�d�n|�d|j�WYd}~q7d}~wt
y�}z|j
rs|�d�n|�dt|��WYd}~q7d}~wwdS)Nrz6A simple command-line interface for py_compile module.)�descriptionz-qz--quiet�
store_truezSuppress error output)�action�help�	filenames�+zFiles to compile)�nargsrY�-cSsg|]}|�d��qS)r+)�rstrip)�.0�filenamerrr�
<listcomp>�szmain.<locals>.<listcomp>T)rJr)�argparse�ArgumentParser�add_argument�
parse_argsrZr<�stdin�	readlinesrrrM�exitr�OSError�str)rbrV�parser�argsrZr`�errorrrrr�s@������r�__main__)NNFr(Nr)�enumZimportlib._bootstrap_externalr.�importlib.machinery�importlib.utilr$Zos.pathr<r
�__all__r
r�Enumrr'rrrrrrr�<module>s(0
�a#
�

?>