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: //snap/certbot/4965/lib/python3.12/site-packages/setuptools/__pycache__/_imp.cpython-312.pyc
�

9�h�	��d�dZddlZddlZddlZddlZddlmZdZdZdZ	dZ
dZd	�Zd
d
�Z
d
d�Zd�Zy)zX
Re-implementation of find_module and get_frozen_object
from the deprecated imp module.
�N)�module_from_spec�����c��t|t�r(tjj	�j
ntjj
}|||�S�N)�
isinstance�list�	importlib�	machinery�
PathFinder�	find_spec�util)�module�paths�finders   �/build/snapcraft-certbot-c9561b03ef7f16aa90eb6754ca5f17a1/parts/certbot/install/lib/python3.12/site-packages/setuptools/_imp.pyrrsI���e�T�"�	���&�&�(�2�2�
�^�^�
%�
%��
�&�%� � �c��t||�}|�td|����|js6t|d�r*tj
j
d|j�}d}d}t|jt�}|jdk(s0|r<t|jtjj�rt}d}dx}}�n6|jdk(s0|r;t|jtjj�r
t }d}dx}}n�|jr�|j}t"j$j'|�d	}|tjj(vrd
nd}|tjj(vrt*}t-j.|�}nX|tjj0vrt2}t/|d�}n)|tjj4vr
t6}nd}dx}}|||||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�hasattrr
r�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�modes	         r�find_moduler<s����V�U�#�D��|��K��x�0�1�1������/K�!L��~�~�.�.�}�d�k�k�J��
�D��D�
����T�
*�F����x����t�{�{�I�$7�$7�$F�$F�G������������z�!���t�{�{�I�$7�$7�$G�$G�H���������	
�	�	��{�{�����!�!�$�'��*���	� 3� 3� C� C�C�s����Y�(�(�8�8�8��D��=�=��&�D�
�y�*�*�<�<�
<��D���d�#�D�
�y�*�*�=�=�
=��D�����������d�+�+�+rc�p�t||�}|std|����|jj|�S�Nr)rrr#�get_code)rrr6s   r�get_frozen_objectr@Ls8���V�U�#�D���K��x�0�1�1��;�;����'�'rc�P�t||�}|std|����t|�Sr>)rrr)rr�infor6s    r�
get_modulerCSs.���V�U�#�D���K��x�0�1�1��D�!�!rr
)�__doc__�importlib.machineryr
�importlib.utilr+r0rr/r3r5r*r(rr<r@rC�rr�<module>rHsI���
��	��+�
�	�����
�	�
�	�!�-,�`(�"r