Your IP : 216.73.216.138
�
��h� � �R � d dl Z d dlZd dlZd dlZd dlZd dlmZmZmZm Z m
Z
mZ ddlm
Z
eej ef ZeZdedefd�Zded ede fd
�Zded edefd�Z dded eded
ede
f
d�Z dded eded
edef
d�Zdedee fd�Zdededefd�Zded edeej6 fd�Zy)� N)�Union�Iterable�ContextManager�BinaryIO�TextIO�Any� )�_common�path�returnc � � t | � }t j 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�osr �split�
ValueError)r �str_path�parent� file_names �B/opt/alt/python312/lib64/python3.12/importlib/resources/_legacy.py�normalize_pathr s@ � �
�4�y�H����
�
�h�/��F�I�
��D�8�#<�=�>�>��� �package�resourcec �b � t j | � t |� z j d� S )zDReturn a file-like object opened for binary reading of the resource.�rb�r
�filesr �open�r r s r �open_binaryr s&