a X�Zg �@s�ddlZddlZddlZddlZddlZddlZddlZddlZgd�Z Gdd�de �Z Gdd�dej �Z dd�Zdd d �Zdd d�Zedkr�e�e��dS)�N)�compile�main�PyCompileError�PycInvalidationModec@seZdZddd�Zdd�ZdS)r�cCst|j}|tur2d�t�||��}|�dd|�}n d||f}t�||pJ||||�||_||_ ||_ |pl||_ dS)NrzFile ""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�"/usr/lib64/python3.9/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�stjStjSdS)N�SOURCE_DATE_EPOCH�RPM_BUILD_ROOT)�os�environ�getrr rrrrr�_get_default_invalidation_modeHs   �r'F�����c Cs�|durt�}|durL|dkr@|dkr*|nd}tjj||d�}n tj�|�}tj�|�rld}t|�|���n*tj� |�r�tj� |�s�d}t|�|���tj � d|�} | � |�} z| j| |p�||d�} Wn`t�y&} zFt| j| |p�|�} |d k�r|r�| �ntj�| jd �WYd} ~ dSd} ~ 00z tj�|�}|�rFt�|�Wnt�y\Yn0|tjk�r�| �|�}tj�| |d |d �}n"tj�| �}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 )� _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�moderrrrPs`-�    �     � � rc Cs |durtjdd�}d}|dgkr�tj��}|s4q�|�d�}zt|dd�Wq$ty�}z"d}tj�d|j �WYd}~q$d}~0t y�}z d}tj�d|�WYd}~q$d}~00q$nX|D]R}zt|dd�Wq�t�y}z"d}tj�d|j �WYd}~q�d}~00q�|S)Nrr�-r+T)rJz%s ) r<�argv�stdin�readline�rstriprrr=r>r�OSError)�args�rv�filename�errorrrrr�s.    &**r�__main__)NNFr(Nr)N)�enumZimportlib._bootstrap_externalr.�importlib.machinery�importlib.utilr$Zos.pathr<r �__all__r r�Enumrr'rrr�exitrrrr�s"0� a &