Your IP : 3.144.237.52


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

o

6��fU8�
@s�	ddlmZddlmZzddlZWney-Zzejdkr!�dZWYdZ[ndZ[wwzddlZWney?eZYnwddlm	Z	ddl
Z
ddlZddlm
Z
mZmZddlmZmZd	d
�ZGdd�de
jd
�ZGdd�de
jd
�Zeeejejejej�Gdd�de
jd
�Zeeej�Gdd�de	�ZGdd�de	�Zeeejej�Gdd�de�Zeeej�Gdd�dej ee�Z ee ej!ej"�Gdd�dej#ee�Z#ee#ej!�Gdd�de
jd
�Z$eGdd�de��Z%Gd d!�d!e$�Z&dS)"�)�_bootstrap_external)�	machinery�N�_frozen_importlib)�Loader)�BinaryIO�Iterable�Text)�Protocol�runtime_checkablec	GsZ|D](}|�|�tdur*ztt|j�}Wnty$tt|j�}Ynw|�|�qdS�N)�registerr�getattr�__name__�AttributeError�_frozen_importlib_external)Zabstract_clsZclasses�clsZ
frozen_cls�r�4/opt/alt/python310/lib64/python3.10/importlib/abc.py�	_registers
�
��rc@s&eZdZ	dd�Zejddd��ZdS)�FindercCst�dt�dS)Nzqthe Finder ABC is deprecated and slated for removal in Python 3.12; use MetaPathFinder or PathEntryFinder instead��warnings�warn�DeprecationWarning��selfrrr�__init__,s�zFinder.__init__NcCs	t�dt�dS)Nz�importlib.abc.Finder along with its find_module() method are deprecated and slated for removal in Python 3.12; use MetaPathFinder.find_spec() or PathEntryFinder.find_spec() insteadr)r�fullname�pathrrr�find_module2s�zFinder.find_moduler)r�
__module__�__qualname__r�abc�abstractmethodr rrrrr s

r)�	metaclassc@seZdZ	dd�Zdd�ZdS)�MetaPathFindercCs>	tjdtdd�t|d�sdS|�||�}|dur|jSdS)Nz�MetaPathFinder.find_module() is deprecated since Python 3.4 in favor of MetaPathFinder.find_spec() and is slated for removal in Python 3.12���
stacklevel�	find_spec)rrr�hasattrr*�loader)rrr�foundrrrr Gs
�
zMetaPathFinder.find_modulecC�dSrrrrrr�invalidate_caches\�z MetaPathFinder.invalidate_cachesN)rr!r"r r/rrrrr&@sr&c@s$eZdZ	dd�ZejZdd�ZdS)�PathEntryFindercCsZ	tjdtdd�t|d�sdgfS|�|�}|dur)|js!g}n|j}|j|fSdgfS)NzzPathEntryFinder.find_loader() is deprecated since Python 3.4 in favor of PathEntryFinder.find_spec() (available since 3.4)r'r(r*)rrrr+r*�submodule_search_locationsr,)rrr-�portionsrrr�find_loaderls�


zPathEntryFinder.find_loadercCr.rrrrrrr/�r0z!PathEntryFinder.invalidate_cachesN)rr!r"r4r�_find_module_shimr r/rrrrr1es
 r1c@seZdZ	ejdd��ZdS)�ResourceLoadercC�	t�r)�OSError�rrrrr�get_data�szResourceLoader.get_dataN)rr!r"r#r$r:rrrrr6�sr6c@sJeZdZ	dd�Zdd�Zejdd��Zeddd	��Z	e
jjZe
jj
Z
d
S)�
InspectLoadercCr7r��ImportError�rrrrr�
is_package�szInspectLoader.is_packagecCs"	|�|�}|durdS|�|�Sr)�
get_source�source_to_code)rr�sourcerrr�get_code�s


zInspectLoader.get_codecCr7rr<r>rrrr@��zInspectLoader.get_source�<string>cCs	t||ddd�S)N�execT)�dont_inherit)�compile)�datarrrrrA�szInspectLoader.source_to_codeN)rE)rr!r"r?rCr#r$r@�staticmethodrAr�
_LoaderBasics�exec_module�load_modulerrrrr;�s
r;c@s$eZdZ	ejdd��Zdd�ZdS)�ExecutionLoadercCr7rr<r>rrr�get_filename�rDzExecutionLoader.get_filenamecCsP	|�|�}|durdSz|�|�}Wnty!|�|�YSw|�||�Sr)r@rOr=rA)rrrBrrrrrC�s
�zExecutionLoader.get_codeN)rr!r"r#r$rOrCrrrrrN�s

rNc@seZdZdS)�
FileLoaderN)rr!r"rrrrrPsrPc@s&eZdZ	dd�Zdd�Zdd�ZdS)�SourceLoadercCs&	|jjtjur
t�t|�|�d�S�N�mtime)�
path_stats�__func__rQr8�intr9rrr�
path_mtimeszSourceLoader.path_mtimecCs"	|jjtjur
t�d|�|�iSrR)rWrUrQr8r9rrrrT szSourceLoader.path_statscCr.rr)rrrIrrr�set_data+r0zSourceLoader.set_dataN)rr!r"rWrTrXrrrrrQ	s
rQc@sneZdZ	ejdedefdd��Zejdedefdd��Zejdede	fdd	��Z
ejdeefd
d��Z
dS)
�ResourceReader�resource�returncCr7r��FileNotFoundError�rrZrrr�
open_resource;szResourceReader.open_resourcecCr7rr\r^rrr�
resource_pathGs	zResourceReader.resource_pathrcCr7rr\r9rrr�is_resourceTszResourceReader.is_resourcecCr7rr\rrrr�contents\szResourceReader.contentsN)rr!r"r#r$r	rr_r`�boolrar�strrbrrrrrY8srYc@s�eZdZ	ejdd��Zdd�Zddd�Zejdefd	d
��Z	ejdefdd��Z
ejd
d��Zdd�Zejddd��Z
ejdefdd��ZdS)�TraversablecCr.rrrrrr�iterdiri�zTraversable.iterdircCs8	|�d��}|��Wd�S1swYdS�N�rb��open�read)r�strmrrr�
read_bytesos$�zTraversable.read_bytesNcCs:	|j|d��}|��Wd�S1swYdS)N)�encodingrj)rrormrrr�	read_textvs$�zTraversable.read_textr[cCr.rrrrrr�is_dir}rgzTraversable.is_dircCr.rrrrrr�is_file�rgzTraversable.is_filecCr.rr�r�childrrr�joinpath�rgzTraversable.joinpathcCs	|�|�Sr)rursrrr�__truediv__�s
zTraversable.__truediv__�rcOr.rr)r�mode�args�kwargsrrrrk�rgzTraversable.opencCr.rrrrrr�name�rgzTraversable.namer)rw)rr!r"r#r$rfrnrprcrqrrrurvrk�abstractpropertyrdr{rrrrrebs"


	rec@s<eZdZ	ejdd��Zdd�Zdd�Zdd�Zd	d
�Z	dS)�TraversableResourcescCr.rrrrrr�files�rgzTraversableResources.filescCs|���|��d�Srh)r~rurkr^rrrr_�sz"TraversableResources.open_resourcecCst|��rr\r^rrrr`�sz"TraversableResources.resource_pathcCs|���|���Sr)r~rurrr9rrrra�sz TraversableResources.is_resourcecCsdd�|����D�S)Ncss�|]}|jVqdSr)r{)�.0�itemrrr�	<genexpr>�s�z0TraversableResources.contents.<locals>.<genexpr>)r~rfrrrrrb�szTraversableResources.contentsN)
rr!r"r#r$r~r_r`rarbrrrrr}�s
r})'�rrrr=�excr{r�_abcrr#r�typingrrr	r
rr�ABCMetarr&�BuiltinImporter�FrozenImporter�
PathFinder�WindowsRegistryFinderr1�
FileFinderr6r;rN�ExtensionFileLoaderrP�SourceFileLoader�SourcelessFileLoaderrQrYrer}rrrr�<module>sX
��� !�.2"�,*C

?>