AlkantarClanX12

Your IP : 18.119.141.115


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

�

c��f�
���ddlZddlZddlZddlZddlZddlmZmZmZm	Z	m
Z
mZddlm
Z
eejefZeZd�Zd�Zededed	e	fd
���Zededed	efd���Ze		ddedededed	e
f
d���Ze		ddedededed	ef
d���Zeded	eefd���Zededed	efd���Zededed	eejfd���ZdS)�N)�Union�Iterable�ContextManager�BinaryIO�TextIO�Any�)�_commonc�F��tj����fd���}|S)Nc�\��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/python311/lib64/python3.11/importlib/resources/_legacy.py�wrapperzdeprecated.<locals>.wrappersR����
��}�
P�
P�
P�
��	
�	
�	
�	
��t�T�$�V�$�$�$�)�	functools�wraps)rrs` r�
deprecatedrs8����_�T���%�%�%�%���%��Nrc��	t|��}tj�|��\}}|rt	|�d����|S)Nz must be only a file name)�str�os�path�split�
ValueError)r�str_path�parent�	file_names    r�normalize_pathr%sQ����4�y�y�H���
�
�h�/�/��F�I�
�?��D�=�=�=�>�>�>��r�package�resource�returnc�r�	tj|��t|��z�d��S)N�rb�r
�filesr%�open�r&r's  r�open_binaryr/+s0��N��M�'�"�"�^�H�%=�%=�=�C�C�D�I�I�Irc�p�	tj|��t|��z���S�N)r
r,r%�
read_bytesr.s  r�read_binaryr31s.��5��M�'�"�"�^�H�%=�%=�=�I�I�K�K�Kr�utf-8�strict�encoding�errorsc�x�	tj|��t|��z�d||���S)N�r)r6r7r+)r&r'r6r7s    r�	open_textr:7sD��M��M�'�"�"�^�H�%=�%=�=�C�C��h�v�D���rc��	t||||��5}|���cddd��S#1swxYwYdSr1)r:�read)r&r'r6r7�fps     r�	read_textr>Ds����

�7�H�h��	7�	7��2��w�w�y�y���������������������s�5�9�9c�d�	d�tj|�����D��S)Nc��g|]	}|j��
S�)�name)�.0rs  r�
<listcomp>zcontents.<locals>.<listcomp>\s��C�C�C�$�D�I�C�C�Cr)r
r,�iterdir)r&s r�contentsrFTs4���D�C�'�-��"8�"8�"@�"@�"B�"B�C�C�C�CrrBc���	t|���t�fd�tj|�����D����S)Nc3�V�K�|]#}|j�ko|���V��$dSr1)rB�is_file)rC�traversabler's  �r�	<genexpr>zis_resource.<locals>.<genexpr>fsP��������	��H�$�>��)<�)<�)>�)>������r)r%�anyr
r,rE)r&rBr's  @r�is_resourcerM_se�����d�#�#�H������"�=��1�1�9�9�;�;������rc�p�	tjtj|��t|��z��Sr1)r
�as_filer,r%r.s  rrrls0��
��?�7�=��1�1�N�8�4L�4L�L�M�M�Mr)r4r5)rr�pathlib�typesr�typingrrrrrr�r
�
ModuleTyper�Package�Resourcerr%r/�bytesr3r:r>rF�boolrM�PathrrArr�<module>rZs�������	�	�	�	�������������I�I�I�I�I�I�I�I�I�I�I�I�I�I�I�I�������
�� �#�%�
&�������
�
�
��J��J�H�J��J�J�J���J�
�L��L�H�L��L�L�L���L�
���		�	�
�	��	��	�
�		�
�	�	�	���	����	��
������
�	�
	��������D�g�D�(�3�-�D�D�D���D��	��	��	��	�	�	���	��N�
�N��N��G�L�!�N�N�N���N�N�Nr