HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/setuptools/__pycache__/_imp.cpython-38.pyc
U

@{?^T	�@sddZddlZddlZddlZddlmZdZdZdZ	dZ
dZd	d
�Zddd�Z
dd
d�Zdd�ZdS)zX
Re-implementation of find_module and get_frozen_object
from the deprecated imp module.
�N�)�module_from_spec����cCs(t|t�rtj��jntjj}|||�S)N)�
isinstance�list�	importlib�	machinery�
PathFinder�	find_spec�util)�module�paths�finder�r�1/usr/lib/python3/dist-packages/setuptools/_imp.pyr
s
��r
c	CsRt||�}|dkrtd|��|js>t|d�r>tj�d|j�}d}d}t|jt	�}|j
dksp|r�t|jtjj
�r�t}d}d}}n�|j
dks�|r�t|jtjj�r�t}d}d}}n�|j�r6|j
}tj�|�d	}|tjjkr�d
nd}|tjjkr�t}n&|tjjk�r
t}n|tjjk�rt}|tthk�rBt||�}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)r
�ImportError�has_location�hasattrr
r�spec_from_loader�loaderr�type�origin�
issubclassr�FrozenImporter�	PY_FROZEN�BuiltinImporter�	C_BUILTIN�os�path�splitext�SOURCE_SUFFIXES�	PY_SOURCE�BYTECODE_SUFFIXES�PY_COMPILED�EXTENSION_SUFFIXES�C_EXTENSION�open)	rr�specZkind�fileZstaticr(�suffix�moderrr�find_modulesJ
�
�
r5cCs&t||�}|std|��|j�|�S�Nr)r
rr�get_code)rrr1rrr�get_frozen_objectGs
r8cCs"t||�}|std|��t|�Sr6)r
rr)rr�infor1rrr�
get_moduleNs
r:)N)N)�__doc__r'�importlib.utilr
�importlib.machineryZ
py34compatrr+r-r/r&r$r
r5r8r:rrrr�<module>s	
*