Your IP : 18.222.179.96


Current Path : /opt/alt/python311/lib64/python3.11/importlib/resources/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/importlib/resources/__pycache__/_common.cpython-311.opt-2.pyc

�

c��fK��X�ddlZddlZddlZddlZddlZddlZddlZddlmZm	Z	ddl
mZmZddl
mZeejefZd�Zd�Zd�Zd	�Zd
�Zejdejd�d
���Zejd���Ze�ej��ejd�����ZdS)�N)�Union�Optional�)�ResourceReader�Traversable)�	wrap_specc�<�	tt|����S�N)�from_package�get_package)�packages �B/opt/alt/python311/lib64/python3.11/importlib/resources/_common.py�filesrs�����G�,�,�-�-�-�c�f�	|j}t|jdd��}|�dS||j��S)N�get_resource_reader)�__spec__�getattr�loader�name�r
�spec�readers   rrrsA�����D�
�T�[�"7��
>�
>�F�
�~��t��6�$�)���rc�b�t|tj��r|ntj|��Sr
)�
isinstance�types�
ModuleType�	importlib�
import_module)�cands r�resolver!*s*���d�E�$4�5�5�X�4�4�9�;R�SW�;X�;X�Xrc�r�	t|��}t|��j�t|�d����|S)Nz is not a package)r!r�submodule_search_locations�	TypeError)r
�resolveds  rrr/sC����w���H�����5�=��7�7�7�7�8�8�8��Orc��	t|��}|j�|j��}|���Sr
)rrrrrrs   rrr;s;����W���D�
�[�
,�
,�T�Y�
7�
7�F��<�<�>�>�r�)�
_os_removec#�~K�tj|���\}}		tj||����tj|��n#tj|��wxYw~tj|��V�	||��dS#t$rYdSwxYw#	||��w#t$rYwwxYwxYw�N)�suffix)�tempfile�mkstemp�os�write�close�pathlib�Path�FileNotFoundError)rr+r(�fd�raw_paths     r�	_tempfiler6Es������#�6�2�2�2�L�B���	��H�R�����"�"�"��H�R�L�L�L�L��B�H�R�L�L�L�L������l�8�$�$�$�$�$�	��J�x� � � � � �� �	�	�	��D�D�	�����	��J�x� � � � �� �	�	�	��D�	������sR�A�B�A%�%B�B
�
B�B�B<� B,�+B<�,
B9�6B<�8B9�9B<c�:�	t|j|j���Sr*)r6�
read_bytesr��paths r�as_filer;\s ����T�_�T�Y�7�7�7�7rc#�K�	|V�dSr
�r9s r�_r>es������J�J�J�J�Jr)r')r.r1r,�	functools�
contextlibrr�typingrr�abcrr�	_adaptersrr�str�Packagerrr!rr�contextmanager�remover6�singledispatchr;�registerr2r>r=rr�<module>rJs���	�	�	�	�������������������������"�"�"�"�"�"�"�"�,�,�,�,�,�,�,�,� � � � � � �
�� �#�%�
&��.�.�.����"Y�Y�Y�
	�	�	��������I��������,��8�8���8�	���'�,��������� ����r

?>