Your IP : 3.15.10.117


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

�

�Q�f
���	ddlZddlZddlZddlmZmZddlmZmZGd�dej�Z	Gd�de�Z
Gd	�d
e�ZGd�dee	�Zy)
�N)�BinaryIO�List�)�Traversable�TraversableResourcesc���eZdZ	eej
defd���Zej
dedfd��Z	ej
deefd��Z
ej
dedefd��Zed��Z
y)	�SimpleReader�returnc��y�N���selfs �A/opt/alt/python312/lib64/python3.12/importlib/resources/simple.py�packagezSimpleReader.packages��	�c��yrr
rs r�childrenzSimpleReader.childrens��	rc��yrr
rs r�	resourceszSimpleReader.resources!���	r�resourcec��yrr
)rrs  r�open_binaryzSimpleReader.open_binary'rrc�>�|jjd�dS)N�.���)r�splitrs r�namezSimpleReader.name-s���|�|�!�!�#�&�r�*�*rN)�__name__�
__module__�__qualname__�property�abc�abstractmethod�strrrrrrrrr
rrr	r	
s����
����������
	����$�~�.����	����4��9����
	����C��H����
�+��+rr	c�2�eZdZ	defd�Zd�Zd�Zd�Zd�Zy)�ResourceContainer�readerc��||_yr)r))rr)s  r�__init__zResourceContainer.__init__7s	����rc��y�NTr
rs r�is_dirzResourceContainer.is_dir:���rc��y�NFr
rs r�is_filezResourceContainer.is_file=���rc����fd��jjD�}tt�jj	��}tj||�S)Nc3�6�K�|]}t�|����y�wr)�ResourceHandle)�.0rrs  �r�	<genexpr>z,ResourceContainer.iterdir.<locals>.<genexpr>As�����N�8M����d�+�8M�s�)r)r�mapr(r�	itertools�chain)r�files�dirss`  r�iterdirzResourceContainer.iterdir@sB���N����8M�8M�N���$�d�k�k�&:�&:�&<�=�����u�d�+�+rc��t��r)�IsADirectoryError)r�args�kwargss   r�openzResourceContainer.openEs���!�!rN)	r r!r"r	r+r.r2r>rCr
rrr(r(2s'����|����,�
"rr(c�8�eZdZ	dedefd�Zd�Zd�Zd	d�Zd�Z	y)
r6�parentrc� �||_||_yr)rEr)rrErs   rr+zResourceHandle.__init__Ns�������	rc��yr-r
rs rr2zResourceHandle.is_fileRr/rc��yr1r
rs rr.zResourceHandle.is_dirUr3rc��|jjj|j�}d|vrt	j
|g|��i|��}|S)N�b)rEr)rr�io�
TextIOWrapper)r�moderArB�streams     rrCzResourceHandle.openXsF�����#�#�/�/��	�	�:���d�?��%�%�f�>�t�>�v�>�F��
rc��td��)NzCannot traverse into a resource)�RuntimeError)rrs  r�joinpathzResourceHandle.joinpath^s���<�=�=rN)�r)
r r!r"r(r&r+r2r.rCrQr
rrr6r6Is/����0�������>rr6c��eZdZ	d�Zy)�TraversableReaderc��t|�Sr)r(rs rr<zTraversableReader.filesis
�� ��&�&rN)r r!r"r<r
rrrTrTbs���'rrT)
r$rKr:�typingrrrr�ABCr	r(r6rTr
rr�<module>rXsS����	��!�2�"+�3�7�7�"+�J"��"�.>�[�>�2'�,�l�'r

?>