AlkantarClanX12

Your IP : 18.191.107.181


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

�
e f'�
@sFdZddlmZmZmZmZmZmZmZm	Z	m
Z
mZyddlmZWne
k
rzdZYnXddlmZmZmZddlmZddlmZddlZddlZddlZddlZddlZddlZejde�dZd	Zd
ZdZdZ d
Z!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.�Z/dd$d%�Z0Gd&d'�d'e-e�Z1dd(d)�Z2d*d+�Z3d,d-�Z4dd.d/�Z5d0d1�Z6dS)2z�This module provides the components needed to build your own __import__
function.  Undocumented functions are obsolete.

In most cases it is preferred you consider using the importlib module's
functionality over this module.

�)
�	lock_held�acquire_lock�release_lock�get_frozen_object�is_frozen_package�init_builtin�init_frozen�
is_builtin�	is_frozen�_fix_co_filename)�load_dynamicN)�SourcelessFileLoader�_ERR_MSG�_SpecMethods)�	machinery)�utilzhthe imp module is deprecated in favour of importlib; see the module's documentation for alternative uses���������	cCs
tj|�S)z_**DEPRECATED**

    Create a new module.

    The module is not entered into sys.modules.

    )�types�
ModuleType)�name�r�(/opt/alt/python34/lib64/python3.4/imp.py�
new_module/sr cCstjS)zH**DEPRECATED**

    Return the magic number for .pyc or .pyo files.
    )r�MAGIC_NUMBERrrrr�	get_magic:sr"cCs
tjjS)z,Return the magic tag for .pyc or .pyo files.)�sys�implementation�	cache_tagrrrr�get_tagBsr&cCstj||�S)a**DEPRECATED**

    Given the path to a .py file, return the path to its .pyc/.pyo file.

    The .py file does not need to exist; this simply returns the path to the
    .pyc/.pyo file calculated as if the .py file were imported.  The extension
    will be .pyc unless sys.flags.optimize is non-zero, then it will be .pyo.

    If debug_override is not None, then it must be a boolean and is used in
    place of sys.flags.optimize.

    If sys.implementation.cache_tag is None then NotImplementedError is raised.

    )r�cache_from_source)�path�debug_overriderrrr'Gsr'cCs
tj|�S)a�**DEPRECATED**

    Given the path to a .pyc./.pyo file, return the path to its .py file.

    The .pyc/.pyo file does not need to exist; this simply returns the path to
    the .py file calculated to correspond to the .pyc/.pyo file.  If path does
    not conform to PEP 3147 format, ValueError will be raised. If
    sys.implementation.cache_tag is None then NotImplementedError is raised.

    )r�source_from_cache)r(rrrr*Ysr*cCsNdd�tjD�}dd�tjD�}dd�tjD�}|||S)z**DEPRECATED**cSsg|]}|dtf�qS)�rb)�C_EXTENSION)�.0�srrr�
<listcomp>is	z get_suffixes.<locals>.<listcomp>cSsg|]}|dtf�qS)�r)�	PY_SOURCE)r-r.rrrr/js	cSsg|]}|dtf�qS)r+)�PY_COMPILED)r-r.rrrr/ks	)r�EXTENSION_SUFFIXES�SOURCE_SUFFIXES�BYTECODE_SUFFIXES)�
extensions�source�bytecoderrr�get_suffixesgsr9c@s.eZdZdZdd�Zdd�ZdS)�NullImporterz-**DEPRECATED**

    Null import object.

    cCsL|dkr!tddd��n'tjj|�rHtdd|��ndS)N�zempty pathnamer(zexisting directory)�ImportError�osr(�isdir)�selfr(rrr�__init__xszNullImporter.__init__cCsdS)zAlways returns None.Nr)r?�fullnamerrr�find_module~szNullImporter.find_moduleN)�__name__�
__module__�__qualname__�__doc__r@rBrrrrr:psr:cs=eZdZdZd�fdd�Z�fdd�Z�S)�_HackedGetDatazMCompatibility support for 'file' arguments of various load_*()
    functions.Ncs t�j||�||_dS)N)�superr@�file)r?rAr(rI)�	__class__rrr@�sz_HackedGetData.__init__csw|jrc||jkrc|jjs0|j}nt|jd�|_}|�|j�SWdQXnt�j|�SdS)z;Gross hack to contort loader to deal w/ load_*()'s bad API.r0N)rIr(�closed�open�readrH�get_data)r?r(rI)rJrrrN�sz_HackedGetData.get_data)rCrDrErFr@rNrr)rJrrG�srGc@seZdZdZdS)�_LoadSourceCompatibilityz5Compatibility support for implementing load_source().N)rCrDrErFrrrrrO�srOcCs�t|||�}tj||d|�}t|�}|tjkr^|jtj|�}n|j�}tj	||�|_
|j
|j_|S)N�loader)
rOr�spec_from_file_locationrr#�modules�exec�loadr�SourceFileLoader�
__loader__�__spec__rP)r�pathnamerIrP�spec�methods�modulerrr�load_source�sr\c@seZdZdZdS)�_LoadCompiledCompatibilityz7Compatibility support for implementing load_compiled().N)rCrDrErFrrrrr]�sr]cCs�t|||�}tj||d|�}t|�}|tjkr^|jtj|�}n|j�}t||�|_	|j	|j
_|S)z**DEPRECATED**rP)r]rrQrr#rRrSrTr
rVrWrP)rrXrIrPrYrZr[rrr�
load_compiled�sr^cCs�tjj|�r�tjdd�tjdd�}xU|D]5}tjj|d|�}tjj|�r=Pq=q=Wtdj	|���nt
j||dg�}t|�}|t
jkr�|jt
j|�S|j�SdS)z**DEPRECATED**Nr@z{!r} is not a package�submodule_search_locations)r=r(r>rr4r5�join�exists�
ValueError�formatrrQrr#rRrSrT)rr(r6�	extensionrYrZrrr�load_package�s
	rec	Cs�|\}}}|rI|jd
�s1d|krItdj|���n?|dkr�|tthkr�dj|�}t|��n|tkr�t|||�S|tkr�t|||�S|tkrtdk	r|dkrt	|d��}t|||�SWdQXq�t|||�Sni|t
kr8t||�S|tkrNt
|�S|tkrdt|�Sdj||�}t|d	|��dS)z�**DEPRECATED**

    Load a module, given information returned by find_module().

    The module name must include the full package name, if any.

    r0�U�+zinvalid file open mode {!r}Nz.file object required for import (type code {})r+z*Don't know how to import {} (type code {})r)r0rf)�
startswithrbrcr1r2r\r^r,rrL�
PKG_DIRECTORYre�	C_BUILTINr�	PY_FROZENrr<)	rrI�filenameZdetails�suffix�mode�type_�msgZopened_filerrr�load_module�s."


rqcCs,t|t�s-tdjt|����n9t|td�tf�sftdjt|����n|dkr�t|�r�ddddtffSt	|�r�ddddt
ffStj}nx�|D]�}t
jj||�}xbdtjdgD]M}d|}t
jj||�}t
jj|�r�d|ddtffSq�WxRt�D]D\}}}||}	t
jj||	�}t
jj|�rSPqSqSWq�Pq�Wttj|�d|��d}
d	|krt|d
��}tj|j�d}
WdQXnt||d|
�}|||||ffS)a,**DEPRECATED**

    Search for a module.

    If path is omitted or None, search for a built-in, frozen or special
    module and continue search in sys.path. The module name cannot
    contain '.'; to search for a submodule of a package, pass the
    submodule name and the package's __path__.

    z'name' must be a str, not {}Nz%'list' must be None or a list, not {}r;z.pyrr@r�br+�encoding)�
isinstance�str�	TypeErrorrc�type�list�RuntimeErrorr	rjr
rkr#r(r=r`rr5�isfilerir9r<rrL�tokenize�detect_encoding�readline)rr(�entryZpackage_directoryrmZpackage_file_nameZ	file_pathrnro�	file_namersrIrrrrB�s@	


rBcCs
tj|�S)zw**DEPRECATED**

    Reload the module and return it.

    The module must have been successfully imported before.

    )�	importlib�reload)r[rrrr�3sr�)7rF�_imprrrrrrrr	r
rrr<Zimportlib._bootstrapr
rrr�rrr=r#r{r�warnings�warn�PendingDeprecationWarningZSEARCH_ERRORr1r2r,ZPY_RESOURCErirjrkZPY_CODERESOURCEZIMP_HOOKr r"r&r'r*r9r:rGrUrOr\r]r^rerqrBr�rrrr�<module>sTF
		#4