AlkantarClanX12

Your IP : 3.138.175.10


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



���]�)�
@s�ddlmZmZmZmZmZmZmZmZm	Z	yddlm
Z
Wnek
rndZ
YnXddlm
Z
mZmZmZddlmZddlmZddlmZddlZddlZddlZddlZddlZddlZejded	d
�dZdZd
ZdZ d
Z!dZ"dZ#dZ$dZ%dZ&dd�Z'dd�Z(dd�Z)ddd�Z*dd�Z+dd�Z,Gdd �d �Z-Gd!d"�d"�Z.Gd#d$�d$e.ej/�Z0dd%d&�Z1Gd'd(�d(e.e�Z2dd)d*�Z3d+d,�Z4d-d.�Z5dd/d0�Z6d1d2�Z7d3d4�Z8e
rvdd5d6�Z9ndZ9dS)7�)	�	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
tj|�S)N)�types�
ModuleType)�name�r �(/opt/alt/python35/lib64/python3.5/imp.py�
new_module0sr"cCstjS)N)r�MAGIC_NUMBERr r r r!�	get_magic;sr$cCs
tjjS)N)�sys�implementation�	cache_tagr r r r!�get_tagCsr(c
Cs5tj��"tjd�tj||�SWdQRXdS)N�ignore)�warnings�catch_warnings�simplefilterr�cache_from_source)�path�debug_overrider r r!r-Hs

r-cCs
tj|�S)N)r�source_from_cache)r.r r r!r0[sr0cCsNdd�tjD�}dd�tjD�}dd�tjD�}|||S)NcSsg|]}|dtf�qS)�rb)�C_EXTENSION)�.0�sr r r!�
<listcomp>ks	z get_suffixes.<locals>.<listcomp>cSsg|]}|dtf�qS)�r)�	PY_SOURCE)r3r4r r r!r5ls	cSsg|]}|dtf�qS)r1)�PY_COMPILED)r3r4r r r!r5ms	)r�EXTENSION_SUFFIXES�SOURCE_SUFFIXES�BYTECODE_SUFFIXES)�
extensions�source�bytecoder r r!�get_suffixesisr?c@s(eZdZdd�Zdd�ZdS)�NullImportercCsI|dkr!tddd��n$tjj|�rEtdd|��dS)N�zempty pathnamer.zexisting directory)�ImportError�osr.�isdir)�selfr.r r r!�__init__zszNullImporter.__init__cCsdS)Nr )rE�fullnamer r r!�find_module�szNullImporter.find_moduleN)�__name__�
__module__�__qualname__rFrHr r r r!r@rsr@cs7eZdZd�fdd�Z�fdd�Z�S)�_HackedGetDataNcs t�j||�||_dS)N)�superrF�file)rErGr.rN)�	__class__r r!rF�sz_HackedGetData.__init__c	sx|jrd||jkrd|jjs0|j}nt|jd�|_}|�|j�SWdQRXnt�j|�SdS)Nr6)rNr.�closed�open�readrM�get_data)rEr.rN)rOr r!rS�sz_HackedGetData.get_data)rIrJrKrFrSr r )rOr!rL�srLc@seZdZdS)�_LoadSourceCompatibilityN)rIrJrKr r r r!rT�srTcCs�t|||�}tj||d|�}|tjkrRt|tj|�}nt|�}tj||�|_	|j	|j
_|S)N�loader)rTr�spec_from_file_locationr%�modulesr
rr�SourceFileLoader�
__loader__�__spec__rU)r�pathnamerNrU�spec�moduler r r!�load_source�sr^c@seZdZdS)�_LoadCompiledCompatibilityN)rIrJrKr r r r!r_�sr_cCs�t|||�}tj||d|�}|tjkrRt|tj|�}nt|�}t||�|_|j|j	_
|S)NrU)r_rrVr%rWr
rrrYrZrU)rr[rNrUr\r]r r r!�
load_compiled�sr`cCs�tjj|�r�tjdd�tjdd�}xU|D]8}tjj|d|�}tjj|�r=|}Pq=Wtdj	|���t
j||dg�}|tj
kr�t|tj
|�St|�SdS)NrFz{!r} is not a package�submodule_search_locations)rCr.rDrr:r;�join�exists�
ValueError�formatrrVr%rWr
r)rr.r<�	extensionZ	init_pathr\r r r!�load_package�s
	rgc	Cs�|\}}}|rI|jd	�s1d|krItdj|���n@|dkr�|tthkr�dj|�}t|��n|tkr�t|||�S|tkr�t|||�S|tkr tdk	r |dkr
t	|d��}t|||�SWdQRXq�t|||�Sni|t
kr9t||�S|tkrOt
|�S|tkret|�Sdj||�}t|d|��dS)
Nr6�U�+zinvalid file open mode {!r}z.file object required for import (type code {})r1z*Don't know how to import {} (type code {})r)r6rh)�
startswithrdrer7r8r^r`r2�load_dynamicrQ�
PKG_DIRECTORYrg�	C_BUILTIN�init_builtin�	PY_FROZENrrB)	rrN�filenameZdetails�suffix�mode�type_�msgZopened_filer r r!�load_module�s."


rucCs!t|t�s-tdjt|����n6t|td�tf�sctdjt|����|dkr�t|�r�ddddtffSt	|�r�ddddt
ffStj}x�|D]�}t
jj||�}xbdtjdgD]M}d|}t
jj||�}t
jj|�r�d|ddtffSq�WxOt�D]A\}}}||}	t
jj||	�}t
jj|�rMPqMWq�Pq�Wttj|�d|��d}
d|kr�t|d	��}tj|j�d}
WdQRXt||d
|
�}|||||ffS)Nz'name' must be a str, not {}z%'path' must be None or a list, not {}rAz.pyrrFr�br1�encoding)�
isinstance�str�	TypeErrorre�type�list�RuntimeErrorrrmr	ror%r.rCrbrr;�isfilerlr?rBrrQ�tokenize�detect_encoding�readline)rr.�entryZpackage_directoryrqZpackage_file_nameZ	file_pathrrrs�	file_namerwrNr r r!rH�s@		


rHcCs
tj|�S)N)�	importlib�reload)r]r r r!r�3sr�cCs+yt|�SWntk
r&dSYnXdS)N)rrB)rr r r!rn>s
rncCsLddl}|jj||�}|jjd|d|d|�}t|�S)NrrrU�origin)Zimportlib.machineryr�ExtensionFileLoader�
ModuleSpecr)rr.rNr�rUr\r r r!rkKs
rk):�_imprrrrrrrr	r
rrBZimportlib._bootstraprr
rrZimportlib._bootstrap_externalrr�rrrCr%rrr*�warn�PendingDeprecationWarningZSEARCH_ERRORr7r8r2ZPY_RESOURCErlrmroZPY_CODERESOURCEZIMP_HOOKr"r$r(r-r0r?r@rLrXrTr^r_r`rgrurHr�rnrkr r r r!�<module>	s\@
"	
	#4