Viewing File: /opt/alt/python311/lib64/python3.11/importlib/resources/__pycache__/_legacy.cpython-311.opt-1.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)UnionIterableContextManagerBinaryIOTextIOAny )_commonc F t j fd }|S )Nc \ t j j dt 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)warningswarn__name__DeprecationWarning)argskwargsfuncs B/opt/alt/python311/lib64/python3.11/importlib/resources/_legacy.pywrapperzdeprecated.<locals>.wrapper sR
}
P
P
P
tT$V$$$ ) functoolswraps)r r s ` r
deprecatedr s8 _T% % % % % Nr c t | }t j | \ }}|rt | d |S )zNormalize 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)strospathsplit
ValueError)r str_pathparent file_names r normalize_pathr% sL 4yyH
h//FI
?D===>>>r packageresourcereturnc p t j | t | z d S )zDReturn a file-like object opened for binary reading of the resource.rbr
filesr% openr&