Your IP : 18.227.72.27
�
c��f�
� � � d dl Z d dlZd dlZd dlZd dlZd dlmZmZmZm Z m
Z
mZ ddlm
Z
eej ef ZeZd� Zd� Zededed e fd
�� � Zededed efd�� � Ze ddedededed e
f
d�� � Ze ddedededed ef
d�� � Zeded ee fd�� � Zededed efd�� � Zededed eej fd�� � ZdS )� N)�Union�Iterable�ContextManager�BinaryIO�TextIO�Any� )�_commonc �F � � t j � � � � fd�� � }|S )Nc �\ �� t j �j � d�t d�� � �| 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>.wrapper sR �� ��
��}�
P�
P�
P�
��
�
�
�
� �t�T�$�V�$�$�$� )� functools�wraps)r r s ` r �
deprecatedr s8 �� ��_�T���%� %� %� %� ��%� �Nr c � � t | � � }t j � |� � \ }}|rt | �d�� � �|S )z�Normalize a path by ensuring it is a string.
If the resulting string contains path separators, an exception is raised.
z must be only a file name)�str�os�path�split�
ValueError)r �str_path�parent� file_names r �normalize_pathr% sL � � �4�y�y�H���
�
�h�/�/��F�I�
� ?��D�=�=�=�>�>�>��r �package�resource�returnc �p � t j | � � t |� � z � d� � S )zDReturn a file-like object opened for binary reading of the resource.�rb�r
�filesr% �open�r&