|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /opt/alt/python312/lib64/python3.12/importlib/resources/__pycache__/ |
�
�9.�Bw� �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&