AlkantarClanX12

Your IP : 18.222.20.250


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

�

�Q�fiG���	ddlmZddlmZddlZddlZddlZddlZddl	Zddl
Z
ddlmZddl
Z
gd�Zedd�Zde_d	�Zdd
�Zdd�Zedd��Zdd
�Zej-ej.j0e�	ddlZddlmZdd�Zej-ee�d�Zdd�Zd�Zd�Z d�Z!d�Z"da#d�Z$y#e$rY� wxYw)�)�
namedtuple)�singledispatchN)�
ModuleType)
�get_importer�iter_importers�
get_loader�find_loader�
walk_packages�iter_modules�get_data�	read_code�extend_path�
ModuleInforzmodule_finder name ispkgz.A namedtuple with minimal info about a module.c��ddl}|jd�}|tjjk7ry|jd�|j|�S)Nr��)�marshal�read�	importlib�util�MAGIC_NUMBER�load)�streamr�magics   �./opt/alt/python312/lib64/python3.12/pkgutil.pyr
r
sC����K�K��N�E��	���+�+�+��
�K�K��O��<�<����c#��K�	ifd�}t||�D]�}|��|js�	t|j�t	t
j|jdd�xsg}|D�cgc]
}||�r�|��}}t||jdz|�Ed{�����ycc}w7�#t$r|�||j�Y��t$r|�||j�n�Y��wxYw�w)Nc��||vryd||<y)NT�)�p�ms  r�seenzwalk_packages.<locals>.seenDs����6����!�r�__path__�.)
r�ispkg�
__import__�name�getattr�sys�modulesr
�ImportError�	Exception)�path�prefix�onerrorr"�infor s      rr
r
's������8��
�T�6�*���
��:�:�
G��4�9�9�%��s�{�{�4�9�9�5�z�4�H�N�B��$(�7�4�a�t�A�w��4��7�(��t�y�y��}�g�F�F�F�)+��$8�F���
'��&��D�I�I�&���
��&��D�I�I�&��'�
�sQ�&C2�B/�0C2�/
B(�=B(�C2� B-�!
C2�/C/�C2�C/�,C2�.C/�/C2c#��K�	|�t�}n+t|t�rtd��t	t
|�}i}|D]/}t
||�D]\}}||vs�d||<t|||���� �1y�w)Nz9path must be None or list of paths to look for modules in�)r�
isinstance�str�
ValueError�mapr�iter_importer_modulesr)r-r.�	importers�yielded�ir'r%s       rrr`s�������|�"�$�	�	�D�#�	��%�&�	&���d�+�	��G�
��0��F�;�K�D�%��7�"� !���
� ��D�%�0�0�<��s�AA3�A3c�@�t|d�sgS|j|�S)Nr)�hasattrr)�importerr.s  rr7r7zs"���8�^�,��	�� � ��(�(rc#�K�|j�)tjj|j�syi}ddl}	tj|j�}|j
�|D]�}|j|�}|dk(s||vr�tjj|j|�}d}|s]tjj|�r>d|vr:|}	tj|�}	|	D]}|j|�}
|
dk(s�d}n��|s��d|vs��d||<||z|f����y#t
$rg}Y��wxYw#t
$rg}	Y�YwxYw�w)Nr�__init__Fr$Tr2)	r-�os�isdir�inspect�listdir�OSError�sort�
getmodulename�join)r=r.r9rB�	filenames�fn�modnamer-r%�dircontents�subnames           r�_iter_file_finder_modulesrM�sI�����}�}��B�G�G�M�M�(�-�-�$@���G����J�J�x�}�}�-�	��N�N�����'�'��+���J��'�W�"4���w�w�|�|�H�M�M�2�.�����2�7�7�=�=��.�3�b�=��G�
!� �j�j��.��"��!�/�/��3���J�&� �E��	"���s�'�)� �G�G���7�"�E�)�)�3�����	���"�
!� ��
!�s`�=E�D3�BE�#E�8E�E�E�"E�3E�>E�E�E�E�E�E�E)�zipimporterc#�
K�ttj|j�}|j}t|�}i}ddl}|D]�}|j|�s�||djtj�}t|�dk(r/|djd�r|d|vrd||d<||dzdf��t|�dk7r��|j|d�}|dk(r��|s��d|vs��||vs��d||<||zdf����y�w)	Nr�r2z__init__.pyTr?r$F)�sorted�	zipimport�_zip_directory_cache�archiver.�lenrB�
startswith�splitr@�seprF)	r=r.�dirlist�_prefix�plenr9rBrIrJs	         r�iter_zipimport_modulesr\�s������7�7��8H�8H�I�J���/�/���7�|������B��=�=��)���D�E�������(�B��2�w��z�b��e�.�.�}�=��a�5��'�%&�G�B�q�E�N� �2�a�5�.�$�.�.��2�w��z���+�+�B�q�E�2�G��
�"���3�g�-�'��2H�#$��� ��w�&��-�-�)�s�C%D�(D�-D�2Dc��	tj|�}	tj|}|S#t$rVtj
D]=}	||�}tjj
||�Y|S#t$rY�;wxYwd}Y|SwxYw)N)r@�fsdecoder)�path_importer_cache�KeyError�
path_hooks�
setdefaultr+)�	path_itemr=�	path_hooks   rrr�s�������I�&�I���*�*�9�5���O���	����I�
�$�Y�/���'�'�2�2�9�h�G��
�O��	�
��
��(��H��O�	�s3�-�B�
(A6�2B�6	B�?B�B�B�Bc#�^K�	|jd�rdj|�}t|��d|vr9|jd�d}t	j
|�}t
|dd�}|�)ytjEd{���tj}|D]}t|����y7�)�w)Nr$�'Relative module name {!r} not supportedrr#)rV�formatr+�
rpartitionr�
import_moduler(r)�	meta_pathr-r)�fullname�msg�pkg_name�pkgr-�items      rrr�s�����
����3��7�>�>�x�H���#���
�h���&�&�s�+�A�.���%�%�h�/���s�J��-���<���=�=� � ��x�x�����4� � ��	!�s�A?B-�B+�*B-c�P�	tjdtj�d�d��|tjvrtj|}|�yt|t�r8|}t|dd�}|�|St|dd��y|j}t|�S|}t|�S)Nzpkgutil.get_loader�(; use importlib.util.find_spec() instead�����remove�
__loader__�__spec__)
�warnings�_deprecated�_DEPRECATED_MSGr)r*r3rr(�__name__r	)�module_or_name�module�loaderrks    rrr
s����
���-�$�4�4�5�6B�B� '�)�����$����^�4���!���.�*�-������t�4�����M��6�:�t�,�4���?�?���x� � �"���x� � rc	��	tjdtj�d�d��|jd�rdj	|�}t|��	tjj|�}|�|jSdS#t
tttf$r-}d}t|j	|t|�|��|�d}~wwxYw)Nzpkgutil.find_loaderrqrrrur$rfz,Error while finding loader for {!r} ({}: {}))ryrzr{rVrgr+rr�	find_spec�AttributeError�	TypeErrorr5�typer)rkrl�spec�exs    rr	r	&s����
���.�$�4�4�5�6B�B� '�)����3��7�>�>�x�H���#���F��~�~�'�'��1���*�4�;�;�4��4��

���J�?�F�=���#�*�*�X�t�B�x��<�=�2�E��F�s�B�C�!(C	�	Cc	���	t|t�s|S|dz}|dd}|jd�\}}}|r	tj|j
}ntj}|D�]%}t|t�s�t|�}|�og}	t|d�r$|j|�}
|
�1|
jxsg}	n t|d�r|j|�\}}	|	D]}||vs�|j|��t jj#||�}t jj%|�s��	t'|�}
|
5|
D]8}|j)d�}|r|j+d�r�(|j|��:	ddd���(|S#ttf$r|cYSwxYw#1swY��LxYw#t,$r1}tj.j1d|�d|�d��Yd}~���d}~wwxYw)	Nz.pkgr$r�r	�
�#zCan't open z: )r3�listrhr)r*r#r`r�r-r4rr<r��submodule_search_locationsr	�appendr@rG�isfile�open�rstriprVrD�stderr�write)r-r'�	sname_pkg�parent_package�_�
final_name�search_path�dir�finder�portionsr��portion�pkgfile�f�linerls                rrr?s����@�d�D�!����v�
�I���7�D�$(�O�O�C�$8�!�N�A�z��	��+�+�n�5�>�>�K��h�h�����#�s�#���c�"�����H��v�{�+��'�'�
�3���#�#�>�>�D�"�H����/�$�0�0��<���8�#���$�&��K�K��(�	$��'�'�,�,�s�I�.��
�7�7�>�>�'�"�
*���M��
� !��#�{�{�4�0��#�t���s�';�$����D�)�	!"��Q�?�L�K��[�.�)�	��K�	��L�Q��	�
1��
�
� � �")�3�"0�1�1��
1�s5�F�8F5�>F(�F%�$F%�(F2	�5	G/�>&G*�*G/c�
�	tjj|�}|�y|j}|�t	|d�syt
jj|�xstjj|�}|�t	|d�sy|jd�}|jdtjj|j��tjj |�}|j#|�S)Nr�__file__�/r)rrr�rr<r)r*�get�
_bootstrap�_loadrW�insertr@r-�dirnamer�rGr)�package�resourcer�r�mod�parts�
resource_names       rrr�s����*�>�>�#�#�G�,�D��|��
�[�[�F�
�~�W�V�Z�8���;�;�?�?�7�#�,����%�%�d�+��
�{�'�#�z�2��

�N�N�3��E�	�L�L��B�G�G�O�O�C�L�L�1�2��G�G�L�L�%�(�M��?�?�=�)�)rc��	t�)ddl}d}|jd|�d|�d�|j�atj	|�}|std|����|j
�}|jd�r?tj|d�}|jd	�}|r|jd
�ng}nq|jd
�}|jd�}tj|�}|r8|d}|�d
|��}		tj|	�}|jd�|	}|r�8|}
|D]}t|
|�}
�|
S#t$rY�"wxYw)Nrz(?!\d)(\w+)(\.(?!\d)(\w+))*z	^(?P<pkg>z)(?P<cln>:(?P<obj>z)?)?$zinvalid format: �clnrn�objr$)�
_NAME_PATTERN�re�compile�UNICODE�matchr5�	groupdictr�rrirW�popr+r()r'r��dotted_wordsr!�gdr�r�rJr �s�results           r�resolve_namer��s^���@���5���
�
�Y�|�n�=7�7C�n�E�$K�#%�:�:�/�
�	���D�!�A���+�D�8�4�5�5�	
����B�	�v�v�e�}��%�%�b��i�0�����u�
��$)����C� �r���
�
�3����)�)�A�,���%�%�g�.����a��A��)�1�Q�C� �A�
��-�-�a�0���	�	�!����
��F�
�����#����M���
��
�s�<(D>�>	E
�	E
)N�N)Nr�)r�)%�collectionsr�	functoolsr�
simplegenericr�importlib.util�importlib.machineryr@�os.pathr)�typesrry�__all__r�__doc__r
r
rr7rM�register�	machinery�
FileFinderrRrNr\r+rrrr	rrr�r�rrr�<module>r�s���$�"�5����	��
�������&@�
A�
�E�
��
 �6G�r1�4�)��)�&*�P���
���"�"�$=�?�#	��%�.�8�"�"�;�0F�G��2!�:!�85�2[�|(*�V�
�G��u�	��	�s� B<�<C�C