Your IP : 216.73.216.138


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

�

��h���R�ddlZddlZddlZddlZddlZddlmZmZmZm	Z	m
Z
mZddlm
Z
eejefZeZdedefd�Zded	ede	fd
�Zded	edefd�Z		dded	eded
ede
f
d�Z		dded	eded
edef
d�Zdedeefd�Zdededefd�Zded	edeej6fd�Zy)�N)�Union�Iterable�ContextManager�BinaryIO�TextIO�Any�)�_common�path�returnc��	t|�}tjj|�\}}|rt	|�d���|S)Nz must be only a file name)�str�osr�split�
ValueError)r�str_path�parent�	file_names    �B/opt/alt/python312/lib64/python3.12/importlib/resources/_legacy.py�normalize_pathrsE����4�y�H����
�
�h�/��F�I�
��D�8�#<�=�>�>����package�resourcec�d�	tj|�t|�zjd�S)N�rb�r
�filesr�open�rrs  r�open_binaryr s)��N��M�M�'�"�^�H�%=�=�C�C�D�I�Irc�b�	tj|�t|�zj�S�N)r
rr�
read_bytesrs  r�read_binaryr$ s'��5��M�M�'�"�^�H�%=�=�I�I�K�Kr�encoding�errorsc�j�	tj|�t|�zjd||��S)N�r)r%r&r)rrr%r&s    r�	open_textr)%s;��M��M�M�'�"�^�H�%=�=�C�C��h�v�D��rc�l�	t||||�5}|j�cddd�S#1swYyxYwr")r)�read)rrr%r&�fps     r�	read_textr-1s.���

�7�H�h��	7�2��w�w�y�
8�	7�	7�s�*�3c��	tj|�j�D�cgc]}|j��c}Scc}wr")r
r�iterdir�name)rrs  r�contentsr1@s9���#*�-�-��"8�"@�"@�"B�C�"B�$�D�I�I�"B�C�C��Cs�=r0c���	t|��t�fd�tj|�j	�D��S)Nc3�`�K�|]%}|j�k(xr|j����'y�wr")r0�is_file)�.0�traversablers  �r�	<genexpr>zis_resource.<locals>.<genexpr>Ps5������;�K�	���H�$�>��)<�)<�)>�>�;�s�+.)r�anyr
rr/)rr0rs  @r�is_resourcer9Js@�����d�#�H���"�=�=��1�9�9�;���rc�l�	tjtj|�t|�z�Sr")r
�as_filerrrs  rrrVs+����?�?�7�=�=��1�N�8�4L�L�M�Mr)zutf-8�strict)�	functoolsr�pathlib�types�warnings�typingrrrrrr�r
�
ModuleTyper�Package�Resourcerr �bytesr$r)r-r1�boolr9�Pathr�rr�<module>rJs\���	����I�I��
�� � �#�%�
&����	��	��	�J��J�H�J��J�
L��L�H�L��L���		�
�	��	��	�
�		�
�	���	�
������
�	�
	��D�g�D�(�3�-�D�	��	��	��	�N�
�N��N��G�L�L�!�Nr

?>