Your IP : 3.149.243.29
a
R�f� � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZdd� Zdd� Zejd
dd��Z ej
ejd d
� ��Ze�ej
�ejdd� ��ZdS )� Nc C s
t | j�S )z=
Return a Traversable object for the given package.
)�fallback_resources�__spec__)�package� r �6/opt/alt/python39/lib64/python3.9/importlib/_common.py�from_package s r c C sN t �| j�j}z(| jj}|�|�}t�|t|�d �W S t yH Y n0 |S )N�/)
�pathlib�Path�origin�parent�loader�archive�relative_to�zipfile�str� Exception)�specZpackage_directoryZarchive_pathZrel_pathr r r r s
r � c c s� t j|d�\}}zJt�|| � � t�|� t�|�V W zt�|� W q� tyX Y q�0 n$zt�|� W n ty| Y n0 0 d S )N��suffix) �tempfileZmkstemp�os�write�closer r
�remove�FileNotFoundError)�readerr �fdZraw_pathr r r � _tempfile s
�r c c s: t | j| jd��}|V W d � n1 s,0 Y dS )zu
Given a Traversable object, return that object as a
path on the local file system in a context manager.
r N)r �
read_bytes�name)�pathZlocalr r r �as_file- s r# c c s
| V dS )z7
Degenerate behavior for pathlib.Path objects.
Nr )r"