ok
Direktori : /opt/alt/python311/lib64/python3.11/importlib/resources/__pycache__/ |
Current File : //opt/alt/python311/lib64/python3.11/importlib/resources/__pycache__/_legacy.cpython-311.opt-2.pyc |
� �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 )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 � t j | � � t |� � z � d� � S )N�rb�r �filesr% �open�r&