a XC?h��@s�ddlZddlZddlZddlZddlZddlZdd�Zdd�Zejd dd��Z ej ejd d ���Z e � ej �ejd d ���ZdS)�NcCs 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 srcCsNt�|j�j}z(|jj}|�|�}t�|t|�d�WSt yHYn0|S)N�/) �pathlib�Path�origin�parent�loader�archive� relative_to�zipfile�str� Exception)�specZpackage_directoryZ archive_pathZrel_pathrrrrs  r�ccs�tj|d�\}}zJt�||��t�|�t�|�VWzt�|�Wq�tyXYq�0n$zt�|�Wnty|Yn00dS)N��suffix) �tempfileZmkstemp�os�write�closer r �remove�FileNotFoundError)�readerr�fdZraw_pathrrr� _tempfiles  � rccs: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)�pathZlocalrrr�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�s