Your IP : 18.188.211.246


Current Path : /opt/alt/python310/lib64/python3.10/importlib/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/importlib/__pycache__/_common.cpython-310.opt-2.pyc

o

6��f��@s�ddlZddlZddlZddlZddlZddlZddlZddlmZm	Z	m
Z
ddlmZm
Z
ddlmZeejefZdd�Zdd	�Zd
d�Zdd
�Zdd�Zdd�Zejdejd�dd��Zejdd��Ze�ej�ejdd���Z dS)�N)�Union�Any�Optional�)�ResourceReader�Traversable)�	wrap_speccCs	tt|��S�N)�from_package�get_package)�package�r
�8/opt/alt/python310/lib64/python3.10/importlib/_common.py�filessrcCs0	t|�}tj�|�\}}|rt|�d���|S)Nz must be only a file name)�str�os�path�split�
ValueError)rZstr_path�parent�	file_namer
r
r�normalize_pathsrcCs,	|j}t|jdd�}|durdS||j�S)N�get_resource_reader)�__spec__�getattr�loader�name�r�spec�readerr
r
rr&s
rcCst|tj�r|St�|�Sr	)�
isinstance�types�
ModuleType�	importlib�
import_module)Zcandr
r
r�resolve7sr%cCs*	t|�}t|�jdurt|�d���|S)Nz is not a package)r%r�submodule_search_locations�	TypeError)rZresolvedr
r
rr<s
rcCs 	t|�}|j�|j�}|��Sr	)rrrrrrr
r
rr
Hsr
�)�
_os_removeccs��tj|d�\}}z&t�||��t�|�~t�|�VWz||�WdSty/YdSwz||�Wwty?Yww�N)�suffix)�tempfileZmkstempr�write�close�pathlib�Path�FileNotFoundError)rr+r)�fdZraw_pathr
r
r�	_tempfileRs"�
���r3cCs	t|j|jd�Sr*)r3Z
read_bytesr�rr
r
r�as_filegsr5ccs�	|VdSr	r
r4r
r
r�_ps�
r6)r()!rr/r,�	functools�
contextlibr!r#�typingrrr�abcrrZ	_adaptersrr"rZPackagerrrr%rr
�contextmanager�remover3�singledispatchr5�registerr0r6r
r
r
r�<module>s4

�



?>