AlkantarClanX12

Your IP : 3.128.197.61


Current Path : /opt/alt/python312/lib64/python3.12/importlib/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/importlib/__pycache__/util.cpython-312.opt-2.pyc

�

�Q�f�*���	ddlmZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
dd	lmZdd
lmZddlm
Z
dd
lZdd
lZdd
lZd�Zd�Zdd�Zdd�ZGd�d�ZGd�dej,�ZGd�de�Zy
)�)�Loader)�module_from_spec)�
_resolve_name)�spec_from_loader)�
_find_spec)�MAGIC_NUMBER)�_RAW_MAGIC_NUMBER)�cache_from_source)�
decode_source)�source_from_cache)�spec_from_file_location�Nc�8�	tjt|�S�N)�_imp�source_hashr	)�source_bytess �5/opt/alt/python312/lib64/python3.12/importlib/util.pyrrs��H����-�|�<�<�c��	|jd�s|S|stdt|��d���d}|D]}|dk7rn|dz
}�t||d||�S)N�.zno package specified for z% (required for relative module names)rr)�
startswith�ImportError�reprr)�name�package�level�	characters    r�resolve_namersz��<��?�?�3����
��5�d�4�j�\�BA�A�B�	B�
�E��	�����
��
�����e�f��w��6�6rc���	|tjvrt||�Stj|}|�y	|j}|�t	|�d���|S#t
$rt	|�d��d�wxYw)N�.__spec__ is None�.__spec__ is not set)�sys�modulesr�__spec__�
ValueError�AttributeError)r�path�module�specs    r�_find_spec_from_pathr+'s���
��3�;�;���$��%�%����T�"���>��	��?�?�D��|� �D�6�):�!;�<�<��K���	F���v�%9�:�;��E�	F�s�A�A.c���	|jd�rt||�n|}|tjvr@|j	d�d}|rt|dg��}	|j}nd}t||�Stj|}|�y	|j}|�t|�d���|S#t$r}td|�d|��|��|�d}~wwxYw#t$rt|�d	��d�wxYw)
Nrr�__path__)�fromlistz __path__ attribute not found on z while trying to find )rr!r")rrr#r$�
rpartition�
__import__r-r'�ModuleNotFoundErrorrr%r&)	rr�fullname�parent_name�parent�parent_path�er)r*s	         r�	find_specr7Fs!��� /3�o�o�c�.B�|�D�'�*��H��s�{�{�"��)�)�#�.�q�1�����z�l�C�F�
P�$�o�o���K��(�K�0�0����X�&���>��	��?�?�D��|� �D�6�):�!;�<�<��K��%"�
P�)�6�{�o�F,�,4�<�9�?G�I�NO�P��
P���	F���v�%9�:�;��E�	F�s$�B(�
C
�(	C
�1C�C
�
C&c�0�eZdZ	d�Zd�Zd�Zed��Zy)�+_incompatible_extension_module_restrictionsc�$�t|�|_yr)�bool�
disable_check)�selfr<s  r�__init__z4_incompatible_extension_module_restrictions.__init__�s��!�-�0��rc�N�tj|j�|_|Sr)r�'_override_multi_interp_extensions_check�override�old�r=s r�	__enter__z5_incompatible_extension_module_restrictions.__enter__�s���?�?��
�
�N����rc�J�|j}|`tj|�yr)rBrr@)r=�argsrBs   r�__exit__z4_incompatible_extension_module_restrictions.__exit__�s���h�h���H��4�4�S�9rc�"�|jrdSdS)N���r)r<rCs rrAz4_incompatible_extension_module_restrictions.override�s���'�'�r�.�Q�.rN)�__name__�
__module__�__qualname__r>rDrG�propertyrA�rrr9r9ws*���>1��:�
�/��/rr9c��eZdZ	d�Zd�Zy)�_LazyModulec��	tj|d�}|j}|d5tj|d�tu�r#|drtj||�cddd�Sd|d<tj|d�}|j}|d}|}i}|j�D]2\}	}
|	|vr|
||	<�t
||	�t
||	�k7s�.|
||	<�4|jj|�|tjvr7t
|�t
tj|�k7rtd|�d���|j|�tj|_ddd�t!||�S#1swY�xYw)	Nr%�lock�	__class__�
is_loadingT�__dict__zmodule object for z. substituted in sys.modules during a lazy load)�object�__getattribute__�loader_staterPr�items�id�loader�exec_moduler#r$r&�update�types�
ModuleTyperS�getattr)r=�attrr%rXrU�
original_name�
attrs_then�	attrs_now�
attrs_updated�key�values           rrWz_LazyModule.__getattribute__�s���F��*�*�4��<���,�,��
�&�
!��&�&�t�[�9�[�H�
 ��-�!�2�2�4��>�+	2�+	2�.2��\�*�!�2�2�4��D��!)�
�
�
�*�*�5�
�$�	� "�
�"+�/�/�"3�J�C���*�,�-2�
�c�*��I�c�N�+�r�*�S�/�/B�B�-2�
�c�*�
#4����+�+�D�1�!�C�K�K�/��$�x�2�c�k�k�-�&@�#A�A�(�+=�m�=N�O1�*1�2�2�
���
�.�!&�!1�!1���W"�Z�t�T�"�"�["�
!�s�8E>�+A-E>�BE>�>Fc�@�	|j|�t||�yr)rW�delattr)r=ras  r�__delattr__z_LazyModule.__delattr__�s��=�	
���d�#���d�rN)rJrKrLrWrjrNrrrPrP�s��U�1#�frrPc�@�eZdZ	ed��Zed��Zd�Zd�Zd�Z	y)�
LazyLoaderc�2�t|d�std��y)Nr\z loader must define exec_module())�hasattr�	TypeError)r[s r�__check_eager_loaderzLazyLoader.__check_eager_loader�s���v�}�-��>�?�?�.rc�6���	�j����fd�S)Nc� ����|i|���SrrN)rF�kwargs�clsr[s  ��r�<lambda>z$LazyLoader.factory.<locals>.<lambda>�s���s�6�4�+B�6�+B�'Cr)�_LazyLoader__check_eager_loader)rtr[s``r�factoryzLazyLoader.factory�s���L�� � ��(�C�Crc�4�|j|�||_yr)rvr[)r=r[s  rr>zLazyLoader.__init__�s���!�!�&�)���rc�8�|jj|�Sr)r[�
create_module)r=r*s  rrzzLazyLoader.create_module�s���{�{�(�(��.�.rc�*�	ddl}|j|j_|j|_i}|jj�|d<|j|d<|j�|d<d|d<||j_t|_y)NrrUrSrRFrT)
�	threadingr[r%�
__loader__rU�copyrS�RLockrXrP)r=r)r|rXs    rr\zLazyLoader.exec_module�s���*�	�!%������� �K�K���
��#)�?�?�#7�#7�#9��Z� �$*�$4�$4��[�!�(���0��V��%*��\�"�'3����$�&��rN)
rJrKrL�staticmethodrv�classmethodrwr>rzr\rNrrrlrl�s>��U��@��@��D��D�
�/�'rrlr)�_abcr�
_bootstraprrrr�_bootstrap_externalrr	r
rrr
rr#r^rrr+r7r9r_rPrlrNrr�<module>r�sq��3��(�%�(�"�-�2�2�.�2�8��
��=�
7��>*�b./�./�b<�%�"�"�<�~''��''r