HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/setuptools/extern/__pycache__/__init__.cpython-310.pyc
o

�_�ag	�@s6ddlZddlZGdd�d�ZdZeeed���dS)�Nc@sXeZdZdZddd�Zedd��Zdd	�Zd
d�Zdd
�Z	dd�Z
ddd�Zdd�ZdS)�VendorImporterz�
    A PEP 302 meta path importer for finding optionally-vendored
    or otherwise naturally-installed packages from root_name.
    �NcCs&||_t|�|_|p|�dd�|_dS)N�extern�_vendor)�	root_name�set�vendored_names�replace�
vendor_pkg)�selfrrr
rr�</usr/lib/python3/dist-packages/setuptools/extern/__init__.py�__init__s
zVendorImporter.__init__ccs�|jdVdVdS)zL
        Search first the vendor package then as a natural package.
        �.�N)r
�rrrr�search_paths�
zVendorImporter.search_pathcCs.|�|jd�\}}}|ott|j|j��S)z,Figure out if the target module is vendored.r)�	partitionr�any�map�
startswithr)r�fullname�root�base�targetrrr�_module_matches_namespacesz(VendorImporter._module_matches_namespacec	Csx|�|jd�\}}}|jD]"}z||}t|�tj|}|tj|<|WSty0Yqwtdjdit�����)zK
        Iterate over the search path to locate and load fullname.
        rz�The '{target}' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.Nr)	rrr�
__import__�sys�modules�ImportError�format�locals)rrrrr�prefix�extant�modrrr�load_modules$



����zVendorImporter.load_modulecCs|�|j�S�N)r$�name)r�specrrr�
create_module3szVendorImporter.create_modulecCsdSr%r)r�modulerrr�exec_module6szVendorImporter.exec_modulecCs|�|�rtj�||�SdS)z(Return a module spec for vendored names.N)r�	importlib�util�spec_from_loader)rr�pathrrrr�	find_spec9s
���zVendorImporter.find_speccCs|tjvr
tj�|�dSdS)zR
        Install this importer into sys.meta_path if not already present.
        N)r�	meta_path�appendrrrr�install@s
�zVendorImporter.install)rN)NN)
�__name__�
__module__�__qualname__�__doc__r
�propertyrrr$r(r*r/r2rrrrrs


r)�	packaging�	pyparsing�ordered_set�more_itertoolszsetuptools._vendor)�importlib.utilr+rr�namesr3r2rrrr�<module>s
C