HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //proc/self/root/usr/local/lib/python3.10/dist-packages/setuptools/__pycache__/_imp.cpython-310.pyc
o

��h�	�@sldZddlZddlZddlZddlZddlmZdZdZdZ	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�:/usr/local/lib/python3.10/dist-packages/setuptools/_imp.pyrs
��
rc	CsJt||�}|durtd|����|js t|d�r tj�d|j�}d}d}t|jt	�}|j
dks9|rBt|jtjj
�rBt}d}d}}n[|j
dksQ|rZt|jtjj�rZt}d}d}}nC|jr�|j
}tj�|�d	}|tjjvrpd
nd}|tjjvr�t}t�|�}n|tjjvr�t}t|d�}n|tjjvr�t}nd}d}}|||||ffS)z7Just like 'imp.find_module()', but with package supportN�Can't find �submodule_search_locationsz__init__.py����frozen�zbuilt-inr�r�rb)r�ImportError�has_location�hasattrrr�spec_from_loader�loaderr	�type�origin�
issubclassr�FrozenImporter�	PY_FROZEN�BuiltinImporter�	C_BUILTIN�os�path�splitext�SOURCE_SUFFIXES�	PY_SOURCE�tokenize�open�BYTECODE_SUFFIXES�PY_COMPILED�EXTENSION_SUFFIXES�C_EXTENSION)	rr�spec�kind�file�staticr)�suffix�moderrr�find_modulesP

��

��
�r9cCs(t||�}|std|����|j�|�S�Nr)rrr �get_code)rrr3rrr�get_frozen_objectLs
r<cCs$t||�}|std|����t|�Sr:)rrr)rr�infor3rrr�
get_moduleSs
r>r)�__doc__�importlib.machineryr�importlib.utilr(r-rr,r0r2r'r%rr9r<r>rrrr�<module>s
	
0