Your IP : 18.221.248.140


Current Path : /usr/lib/python3.8/site-packages/setuptools/__pycache__/
Upload File :
Current File : //usr/lib/python3.8/site-packages/setuptools/__pycache__/_imp.cpython-38.pyc

U

�Qab��@s\dZddlZddlZddlZddlmZdZdZdZ	dZ
dZdd	d
�Zddd�Z
d
d�ZdS)zX
Re-implementation of find_module and get_frozen_object
from the deprecated imp module.
�N�)�module_from_spec����c	CsVtj�||�}|dkr"td|��|jsBt|d�rBtj�d|j�}d}d}t|jt	�}|j
dkst|r�t|jtjj
�r�t}d}d}}n�|j
dks�|r�t|jtjj�r�t}d}d}}n�|j�r:|j
}tj�|�d	}|tjjkr�d
nd}|tjjkr�t}n&|tjjk�rt}n|tjjk�r t}|tthk�rFt||�}nd}d}}|||||ffS)z7Just like 'imp.find_module()', but with package supportN�
Can't find %s�submodule_search_locationsz__init__.py����frozen�zbuilt-inr�r�rb)�	importlib�util�	find_spec�ImportError�has_location�hasattr�spec_from_loader�loader�
isinstance�type�origin�
issubclass�	machinery�FrozenImporter�	PY_FROZEN�BuiltinImporter�	C_BUILTIN�os�path�splitext�SOURCE_SUFFIXES�	PY_SOURCE�BYTECODE_SUFFIXES�PY_COMPILED�EXTENSION_SUFFIXES�C_EXTENSION�open)	�module�paths�specZkind�fileZstaticr!�suffix�mode�r0�3/usr/lib/python3.8/site-packages/setuptools/_imp.py�find_modulesJ�
�
r2cCs*tj�||�}|std|��|j�|�S�Nr)rrrrr�get_code)r*r+r,r0r0r1�get_frozen_object>sr5cCs&tj�||�}|std|��t|�Sr3)rrrrr)r*r+�infor,r0r0r1�
get_moduleEsr7)N)N)�__doc__r �importlib.utilrZimportlib.machineryZ
py34compatrr$r&r(rrr2r5r7r0r0r0r1�<module>s
*


?>