AlkantarClanX12

Your IP : 3.138.135.4


Current Path : /opt/alt/python34/lib64/python3.4/importlib/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/importlib/__pycache__/__init__.cpython-34.pyo

�
e f$�@s<dZddddgZddlZddlZyddlZWn2ek
rtddlmZejee�YnNXd	e_	d
e_
yejdd�e_Wne
k
r�YnXeejd	<ejZejZddlZddlZdd
lmZdd�Zddd�Zddd�ZiZdd�ZdS)z'A pure Python implementation of import.�
__import__�
import_module�invalidate_caches�reload�N�)�
_bootstrapzimportlib._bootstrap�	importlibz__init__.pyz
_bootstrap.py)rcCs4x-tjD]"}t|d�r
|j�q
q
WdS)zmCall the invalidate_caches() method on all meta path finders stored in
    sys.meta_path (where implemented).rN)�sys�	meta_path�hasattrr)�finder�r
�7/opt/alt/python34/lib64/python3.4/importlib/__init__.pyr1scCstjdtdd�y<tj|j}|dkrMtdj|���n|SWn8tk
rfYn't	k
r�tdj|���YnXt
j||�}|dkr�dS|jdkr|j
dkr�tdj|�d|��ntd	d|��n|jS)
z�Return the loader for the specified module.

    This is a backward-compatible wrapper around find_spec().

    This function is deprecated in favor of importlib.util.find_spec().

    z'Use importlib.util.find_spec() instead.�
stacklevel�Nz{}.__loader__ is Nonez{}.__loader__ is not setzspec for {} missing loader�namez&namespace packages do not have loaders)�warnings�warn�DeprecationWarningr	�modules�
__loader__�
ValueError�format�KeyError�AttributeErrorr�
_find_spec�loader�submodule_search_locations�ImportError)r�pathr�specr
r
r�find_loader9s*	


	r!cCs�d}|jd�rg|s9d}t|j|���nx+|D] }|dkrVPn|d7}q@Wntj||d�||�S)z�Import a module.

    The 'package' argument is required when performing a relative import. It
    specifies the package to use as the anchor point from which to resolve the
    relative import to an absolute import.

    r�.zHthe 'package' argument is required to perform a relative import for {!r}rN)�
startswith�	TypeErrorrr�_gcd_import)r�package�level�msg�	characterr
r
rr[s
c	"Cs�|st|tj�r)td��ny|jj}Wntk
rV|j}YnXtj	j
|�|k	r�d}t|j|�d|��n|t
kr�t
|S|t
|<z�|jd�d}|r ytj	|}Wn3tk
rd}t|j|�d|��Yq&X|j}nd}|}tj|||�}|_tj|�}|j|�tj	|SWdyt
|=Wntk
r�YnXXdS)zcReload the module and return it.

    The module must have been successfully imported before.

    z reload() argument must be modulezmodule {} not in sys.modulesrr"rzparent {!r} not in sys.modulesN)�
isinstance�types�
ModuleTyper$�__spec__rr�__name__r	r�getrr�
_RELOADING�
rpartitionr�__path__rr�_SpecMethods�exec)	�modulerr(�parent_name�parent�pkgpath�targetr �methodsr
r
rrss>


 

)�__doc__�__all__�_impr	�_frozen_importlibrr��_setupr.�__package__�__file__�replace�	NameErrorr�_w_long�_r_longr+rrrr!rr0rr
r
r
r�<module>s2

		

		"