Your IP : 3.147.56.125


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

�

�Q�f�
���ddlZddlZddlZddlZddlZddlmZmZmZm	Z	m
Z
mZddlm
Z
eejefZeZd�Zdedefd�Zed	ed
ede	fd��Zed	ed
edefd��Ze		dd	ed
ed
edede
f
d��Ze		dd	ed
ed
ededef
d��Zed	edeefd��Zed	ededefd��Zed	ed
edeej8fd��Zy)�N)�Union�Iterable�ContextManager�BinaryIO�TextIO�Any�)�_commonc�B��tj���fd��}|S)Nc�f��tj�j�d�td���|i|��S)Nz� is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.�)�
stacklevel)�warnings�warn�__name__�DeprecationWarning)�args�kwargs�funcs  ��B/opt/alt/python312/lib64/python3.12/importlib/resources/_legacy.py�wrapperzdeprecated.<locals>.wrappers>����
�
��}�}�o�P�
P�
��	
��T�$�V�$�$�)�	functools�wraps)rrs` r�
deprecatedrs%����_�_�T��%��%��Nr�path�returnc��	t|�}tjj|�\}}|rt	|�d���|S)Nz must be only a file name)�str�osr�split�
ValueError)r�str_path�parent�	file_names    r�normalize_pathr&sE����4�y�H����
�
�h�/��F�I�
��D�8�#<�=�>�>��r�package�resourcec�d�	tj|�t|�zjd�S)N�rb�r
�filesr&�open�r'r(s  r�open_binaryr/*s)��N��M�M�'�"�^�H�%=�=�C�C�D�I�Irc�b�	tj|�t|�zj�S�N)r
r,r&�
read_bytesr.s  r�read_binaryr30s'��5��M�M�'�"�^�H�%=�=�I�I�K�Kr�encoding�errorsc�j�	tj|�t|�zjd||��S)N�r)r4r5r+)r'r(r4r5s    r�	open_textr86s;��M��M�M�'�"�^�H�%=�=�C�C��h�v�D��rc�l�	t||||�5}|j�cddd�S#1swYyxYwr1)r8�read)r'r(r4r5�fps     r�	read_textr<Cs3���

�7�H�h��	7�2��w�w�y���	7�	7�s�*�3c��	tj|�j�D�cgc]}|j��c}Scc}wr1)r
r,�iterdir�name)r'rs  r�contentsr@Ss9���#*�-�-��"8�"@�"@�"B�C�"B�$�D�I�I�"B�C�C��Cs�=r?c���	t|��t�fd�tj|�j	�D��S)Nc3�`�K�|]%}|j�k(xr|j����'y�wr1)r?�is_file)�.0�traversabler(s  �r�	<genexpr>zis_resource.<locals>.<genexpr>es5������;�K�	���H�$�>��)<�)<�)>�>�;�s�+.)r&�anyr
r,r>)r'r?r(s  @r�is_resourcerH^s@�����d�#�H���"�=�=��1�9�9�;���rc�l�	tjtj|�t|�z�Sr1)r
�as_filer,r&r.s  rrrks+��
��?�?�7�=�=��1�N�8�4L�L�M�Mr)zutf-8�strict)rr �pathlib�typesr�typingrrrrrr�r
�
ModuleTyper�Package�Resourcerr&r/�bytesr3r8r<r@�boolrH�Pathr�rr�<module>rWs����	����I�I��
�� � �#�%�
&�����	��	��	��J��J�H�J��J��J�
�L��L�H�L��L��L�
���		�
�	��	��	�
�		�
�	��	����	�
������
�	�
	�����D�g�D�(�3�-�D��D��	��	��	��	��	��N�
�N��N��G�L�L�!�N��Nr

?>