Your IP : 18.191.171.10


Current Path : /opt/alt/python39/lib64/python3.9/__pycache__/
Upload File :
Current File : //opt/alt/python39/lib64/python3.9/__pycache__/imp.cpython-39.opt-2.pyc

a

R�f()�@s�ddlmZmZmZmZmZmZmZmZm	Z	zddlm
Z
WneyRdZ
Yn0ddlm
Z
mZmZmZddlmZddlmZddlmZddlZddlZddlZddlZddlZddlZejded	d
�dZdZd	ZdZ d
Z!dZ"dZ#dZ$dZ%dZ&dd�Z'dd�Z(dd�Z)d7dd�Z*dd�Z+dd�Z,Gdd �d �Z-Gd!d"�d"�Z.Gd#d$�d$e.ej/�Z0d8d%d&�Z1Gd'd(�d(e.e�Z2d9d)d*�Z3d+d,�Z4d-d.�Z5d:d/d0�Z6d1d2�Z7d3d4�Z8e
�r�d;d5d6�Z9ndZ9dS)<�)	�	lock_held�acquire_lock�release_lock�get_frozen_object�is_frozen_package�init_frozen�
is_builtin�	is_frozen�_fix_co_filename)�create_dynamicN)�_ERR_MSG�_exec�_load�_builtin_from_name)�SourcelessFileLoader)�	machinery)�utilzhthe imp module is deprecated in favour of importlib; see the module's documentation for alternative uses�)�
stacklevel��������	cCs
t�|�S�N)�types�
ModuleType��name�r"�(/opt/alt/python39/lib64/python3.9/imp.py�
new_module0sr$cCstjSr)r�MAGIC_NUMBERr"r"r"r#�	get_magic;sr&cCstjjSr)�sys�implementation�	cache_tagr"r"r"r#�get_tagCsr*cCsBt���&t�d�t�||�Wd�S1s40YdS)N�ignore)�warnings�catch_warnings�simplefilterr�cache_from_source)�path�debug_overrider"r"r#r/Hs

r/cCs
t�|�Sr)r�source_from_cache�r0r"r"r#r2[sr2cCs<dd�tjD�}dd�tjD�}dd�tjD�}|||S)NcSsg|]}|dtf�qS��rb)�C_EXTENSION��.0�sr"r"r#�
<listcomp>k�z get_suffixes.<locals>.<listcomp>cSsg|]}|dtf�qS)�r)�	PY_SOURCEr7r"r"r#r:lr;cSsg|]}|dtf�qSr4)�PY_COMPILEDr7r"r"r#r:mr;)r�EXTENSION_SUFFIXES�SOURCE_SUFFIXES�BYTECODE_SUFFIXES)�
extensions�source�bytecoder"r"r#�get_suffixesisrEc@seZdZdd�Zdd�ZdS)�NullImportercCs2|dkrtddd��ntj�|�r.td|d��dS)N�zempty pathnamer3zexisting directory)�ImportError�osr0�isdir)�selfr0r"r"r#�__init__zszNullImporter.__init__cCsdSrr")rK�fullnamer"r"r#�find_module�szNullImporter.find_moduleN)�__name__�
__module__�__qualname__rLrNr"r"r"r#rFrsrFcs*eZdZd�fdd�	Z�fdd�Z�ZS)�_HackedGetDataNcst��||�||_dSr)�superrL�file)rKrMr0rT��	__class__r"r#rL�sz_HackedGetData.__init__cs�|jrx||jkrx|jjs0|j}d|jvr0|��|jjrJt|jd�|_}|�|��Wd�S1sl0Ynt��|�SdS)N�br5)	rTr0�closed�mode�close�open�readrS�get_data)rKr0rTrUr"r#r]�s
(z_HackedGetData.get_data)N)rOrPrQrLr]�
__classcell__r"r"rUr#rR�srRc@seZdZdS)�_LoadSourceCompatibilityN�rOrPrQr"r"r"r#r_�sr_cCs\t|||�}tj|||d�}|tjvr8t|tj|�}nt|�}t�||�|_	|j	|j
_|S�N)�loader)r_r�spec_from_file_locationr'�modulesr
rr�SourceFileLoader�
__loader__�__spec__rb�r!�pathnamerTrb�spec�moduler"r"r#�load_source�s

rlc@seZdZdS)�_LoadCompiledCompatibilityNr`r"r"r"r#rm�srmcCsZt|||�}tj|||d�}|tjvr8t|tj|�}nt|�}t||�|_|j|j	_
|Sra)rmrrcr'rdr
rrrfrgrbrhr"r"r#�
load_compiled�s

rncCs�tj�|�rftjdd�tjdd�}|D]*}tj�|d|�}tj�|�r,|}qfq,td�	|���t
j||gd�}|tj
vr�t|tj
|�St|�SdS)NrLz{!r} is not a package)�submodule_search_locations)rIr0rJrr@rA�join�exists�
ValueError�formatrrcr'rdr
r)r!r0rB�	extensionZ	init_pathrjr"r"r#�load_package�s ��
ruc	Cs4|\}}}|r2|�d�r d|vr2td�|����n�|durZ|tthvrZd�|�}t|��n�|tkrnt|||�S|tkr�t|||�S|tkr�tdur�|dur�t	|d��}t|||�Wd�S1s�0Ynt|||�SnP|t
k�r�t||�S|tk�rt
|�S|tk�rt|�Sd�||�}t||d��dS)N)r<�U�+zinvalid file open mode {!r}z.file object required for import (type code {})r5z*Don't know how to import {} (type code {})r )�
startswithrrrsr=r>rlrnr6�load_dynamicr[�
PKG_DIRECTORYru�	C_BUILTIN�init_builtin�	PY_FROZENrrH)	r!rT�filenameZdetails�suffixrY�type_�msgZopened_filer"r"r#�load_module�s.


,



r�cCs�t|t�std�t|����n$t|td�tf�sBtd�t|����|dur�t|�rbddddtffSt	|�rzddddt
ffStj}|D]�}t
j�||�}dtjdfD]>}d|}t
j�||�}t
j�|�r�d|ddtffSq�t�D]2\}}}||}	t
j�||	�}t
j�|�r��q q�q��q:q�tt�|�|d��d}
d|v�r�t|d	�� }t�|j�d}
Wd�n1�sz0Yt|||
d
�}|||||ffS)Nz'name' must be a str, not {}z%'path' must be None or a list, not {}rGz.pyrrLr rWr5)�encoding)�
isinstance�str�	TypeErrorrs�type�list�RuntimeErrorrr{r	r}r'r0rIrprrA�isfilerzrErHrr[�tokenize�detect_encoding�readline)r!r0�entryZpackage_directoryrZpackage_file_nameZ	file_pathrYr��	file_namer�rTr"r"r#rN�sB
�
0rNcCs
t�|�Sr)�	importlib�reload)rkr"r"r#r�2sr�cCs$z
t|�WStyYdS0dSr)rrHr r"r"r#r|=s
r|cCs0ddl}|j�||�}|jj|||d�}t|�S)Nr)r!rb�origin)�importlib.machineryr�ExtensionFileLoader�
ModuleSpecr)r!r0rTr�rbrjr"r"r#ryJs�ry)N)N)N)N)N):�_imprrrrrrrr	r
rrHZimportlib._bootstraprr
rrZimportlib._bootstrap_externalrr�rrrIr'r�rr,�warn�DeprecationWarningZSEARCH_ERRORr=r>r6ZPY_RESOURCErzr{r}ZPY_CODERESOURCEZIMP_HOOKr$r&r*r/r2rErFrRrer_rlrmrnrur�rNr�r|ryr"r"r"r#�<module>	s^,
�
	

#
4

?>