Your IP : 3.149.29.190


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

�

�Q�fS���ddlZddlZddlZddlZddlZddlmZmZmZm	Z	m
Z
mZmZddlm
Z
mZddlmZeeej"efZgd�ZGd�dej(��ZGd	�d
e�Ze
Gd�de��ZGd
�de�Zy)�N)�Any�BinaryIO�Iterable�Iterator�NoReturn�Text�Optional)�runtime_checkable�Protocol)�Union)�ResourceReader�Traversable�TraversableResourcesc���eZdZ	ejdedefd��Zejdedefd��Zejdede	fd��Z
ejdeefd��Z
y)	r
�resource�returnc��	t��N��FileNotFoundError��selfrs  �>/opt/alt/python312/lib64/python3.12/importlib/resources/abc.py�
open_resourcezResourceReader.open_resources��	� ��c��	t�rrrs  r�
resource_pathzResourceReader.resource_paths��	� �r�pathc��	t�rr�rrs  r�is_resourcezResourceReader.is_resource,s��	� �rc��	t�rr�rs r�contentszResourceReader.contents4s��9��rN)�__name__�
__module__�__qualname__�abc�abstractmethodrrrr�boolr!r�strr$�rrr
r
s���N����	 �d�	 �x�	 ��	 �	���
 �d�
 �t�
 ��
 �	��� �� �� �� �	��� �(�3�-� �� rr
)�	metaclassc��eZdZy)�TraversalErrorN)r%r&r'r,rrr/r/:s��rr/c�0�eZdZ	ejdedfd��Zdefd�Zdde	e
de
fd�Zejdefd��Z
ejdefd��Zd	eddfd
�Zdeddfd�Zejdd
��Zeejde
fd���Zy)rrc��yrr,r#s r�iterdirzTraversable.iterdirH���	rc�r�	|jd�5}|j�cddd�S#1swYyxYw�N�rb��open�read)r�strms  r�
read_byteszTraversable.read_bytesNs.��	��Y�Y�t�_���9�9�;�	�	�_�_�s�-�6N�encodingc�t�	|j|��5}|j�cddd�S#1swYyxYw)N)r<r7)rr<r:s   r�	read_textzTraversable.read_textUs3��	��Y�Y��Y�
)�T��9�9�;�	�	�
)�
)�s�.�7c��yrr,r#s r�is_dirzTraversable.is_dir\r3rc��yrr,r#s r�is_filezTraversable.is_filebr3r�descendantsc�N��	|s|Stjjd�ttj
|�D��}t
|���fd�|j�D�}	t
|�}|j|�S#t$rtd�t|���wxYw)Nc3�4K�|]}|j���y�wr)�parts)�.0rs  r�	<genexpr>z'Traversable.joinpath.<locals>.<genexpr>rs����.
�#J�4�D�J�J�#J���c3�B�K�|]}|j�k(s�|���y�wr��name)rG�traversable�targets  �rrHz'Traversable.joinpath.<locals>.<genexpr>vs#�����
�+9�K�[�=M�=M�QW�=W�K�>�s��z"Target not found during traversal.)�	itertools�chain�
from_iterable�map�pathlib�
PurePosixPath�nextr2�
StopIterationr/�list�joinpath)rrC�names�matches�matchrNs     @rrXzTraversable.joinpathhs����	���K����-�-�.
�#&�w�'<�'<�k�#J�.
�
���e���
�+/�<�<�>�
��	���M�E�
�u�~�~�u�%�%��	�	� �4�f�d�5�k��
�	�s�*B� B$�childc�&�	|j|�Sr)rX)rr\s  r�__truediv__zTraversable.__truediv__�s��	��}�}�U�#�#rc��yrr,)r�mode�args�kwargss    rr8zTraversable.open�s��	rc��yrr,r#s rrLzTraversable.name�s��	rr)�r)r%r&r'r(r)rr2�bytesr;r	r+r>r*r@rB�StrPathrXr^r8�propertyrLr,rrrr>s����	�����-�0����
�E���(�3�-��3��	��������
	��������
&�W�&��&�2$��$�]�$�	�����������c����rrc��eZdZ	ejd
d��Zdedejfd�Z	de
defd�Zdede
fd�Zdeefd�Zy	)rrc��yrr,r#s r�fileszTraversableResources.files�s��Arrc�^�|j�j|�jd�Sr5)rjrXr8rs  rrz"TraversableResources.open_resource�s$���z�z�|�$�$�X�.�3�3�D�9�9rc��t|��rrrs  rrz"TraversableResources.resource_path�s
����)�)rrc�\�|j�j|�j�Sr)rjrXrBr s  rr!z TraversableResources.is_resource�s"���z�z�|�$�$�T�*�2�2�4�4rc�L�d�|j�j�D�S)Nc3�4K�|]}|j���y�wrrK)rG�items  rrHz0TraversableResources.contents.<locals>.<genexpr>�s����=�&<�d��	�	�&<�rI)rjr2r#s rr$zTraversableResources.contents�s��=�d�j�j�l�&:�&:�&<�=�=rN)rr)r%r&r'r(r)rjrf�io�BufferedReaderrrrrr*r!rr+r$r,rrrr�sr���
	���B��B�:�g�:�"�2C�2C�:�*�c�*�h�*�5��5�D�5�>�(�3�-�>rr)r(rqrO�osrS�typingrrrrrrr	r
rrr+�PathLikerf�__all__�ABCMetar
�	Exceptionr/rrr,rr�<module>rys���
�	��	��N�N�N�.����R�[�[��%�%�
&��
C��' �s�{�{�' �T	�Y�	��W�(�W��W�t>�>�>r

?>