| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/libexec/oracle-cloud-agent/plugins/osms/importlib/ |
Upload File : |
a
���d� � @ 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 �)/usr/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)�spec�package_directory�archive_path�rel_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) �tempfile�mkstemp�os�write�closer r
�remove�FileNotFoundError)�readerr �fd�raw_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)�path�localr r r �as_file- s r) c c s
| V dS )z7
Degenerate behavior for pathlib.Path objects.
Nr )r'