HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/setuptools/__pycache__/_imp.cpython-310.pyc
o

�N�g�	�@sddZddlZddlZddlZddlmZdZdZdZdZ	dZ
d	d
�Zddd�Zdd
d�Z
dd�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�C/opt/saltstack/salt/lib/python3.10/site-packages/setuptools/_imp.pyrs
��
rc	CsJt||�}|durtd|��|jst|d�rtj�d|j�}d}d}t|jt	�}|j
dks8|rAt|jtjj
�rAt}d}d}}n\|j
dksP|rYt|jtjj�rYt}d}d}}nD|jr�|j
}tj�|�d	}|tjjvrod
nd}|tjjvrzt}n|tjjvr�t}n|tjjvr�t}|tthvr�t||�}nd}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�hasattrrr�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�spec�kind�fileZstaticr)�suffix�moderrr�find_modulesP

��

��

�r7cCs&t||�}|s
td|��|j�|�S�Nr)rrr �get_code)rrr2rrr�get_frozen_objectMs
r:cCs"t||�}|s
td|��t|�Sr8)rrr)rr�infor2rrr�
get_moduleTs
r<r)�__doc__r(�importlib.utilrZimportlib.machineryrr,r.r0r'r%rr7r:r<rrrr�<module>s
	
0