HEX
Server: Apache
System: Linux box5936.bluehost.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: aviatjd3 (1318)
PHP: 8.3.32
Disabled: NONE
Upload Files
File: //usr/libexec/oracle-cloud-agent/plugins/osms/importlib/_common.pyc
a

���d��@s�ddlZddlZddlZddlZddlZddlZdd�Zdd�Zejd
dd��Z	ej
ejd	d
���Ze�ej
�ejdd���ZdS)�NcCs
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	srcCsNt�|j�j}z(|jj}|�|�}t�|t|�d�WSt	yHYn0|S)N�/)
�pathlib�Path�origin�parent�loader�archive�relative_to�zipfile�str�	Exception)�spec�package_directory�archive_path�rel_pathrrrrs
r�ccs�tj|d�\}}zJt�||��t�|�t�|�VWzt�|�Wq�tyXYq�0n$zt�|�Wnty|Yn00dS)N��suffix)	�tempfile�mkstemp�os�write�closer	r
�remove�FileNotFoundError)�readerr�fd�raw_pathrrr�	_tempfiles
�r$ccs:t|j|jd��}|VWd�n1s,0YdS)zu
    Given a Traversable object, return that object as a
    path on the local file system in a context manager.
    rN)r$�
read_bytes�name)�path�localrrr�as_file-sr)ccs
|VdS)z7
    Degenerate behavior for pathlib.Path objects.
    Nr)r'rrr�_8sr*)r)rr	rr�	functools�
contextlibrr�contextmanagerr$�singledispatchr)�registerr
r*rrrr�<module>s