Your IP : 18.118.139.79


Current Path : /opt/alt/python313/lib64/python3.13/importlib/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib64/python3.13/importlib/__pycache__/abc.cpython-313.pyc

�

+}g���D�SrSSKJr SSKJr SSKrSSKrSSK	J
r
 SSKrSSKrSSK
Jr /S	QrS
rSr"SS
\R$S9r\"\\R(\R*\R,\R.5 "SS\R$S9r\"\\R25 "SS\
5r"SS\
5r\"\\R(\R*\R85 "SS\5r\"\\R<\R>5 "SS\R@\\5r \"\ \RB\RD5 "SS\RF\\5r#\"\#\RB5 g!\ar\RS:waeSrSrCGNwSrCff=f!\a \rGN�f=f)z(Abstract base classes related to import.�)�_bootstrap_external)�	machinery�N�_frozen_importlib)�Loader)�abc)r�MetaPathFinder�PathEntryFinder�ResourceLoader�
InspectLoader�ExecutionLoader�
FileLoader�SourceLoaderc���U[R;a=[[U5n[R"[
SU3SS9 U[
5U'U$[S[
<SU<35e)zo
For backwards compatibility, continue to make names
from _resources_abc available through this module. #93963
�.)��)�removezmodule z has no attribute )�_resources_abc�__all__�getattr�warnings�_deprecated�__name__�globals�AttributeError)�name�objs  �4/opt/alt/python313/lib64/python3.13/importlib/abc.py�__getattr__r sb��
�~�%�%�%��n�d�+������z��4�&�1�'�B���	�$���
�
�7�8�,�.@���I�
J�J�c��UHInURU5 [cM[[UR5nURU5 MK g![a [[
UR5nN<f=f)N)�registerrrrr�_frozen_importlib_external)�abstract_cls�classes�cls�
frozen_clss    r�	_registerr))sk�������c�"��(�
O�$�%6����E�
�
�!�!�*�-���
"�
O�$�%?����N�
�
O�s�A�$A8�7A8c��\rSrSrSrSrSrg)r	�4z8Abstract base class for import finders on sys.meta_path.c��g)zrAn optional method for clearing the finder's cache, if any.
This method is used by importlib.invalidate_caches().
N���selfs r�invalidate_caches� MetaPathFinder.invalidate_caches;��r!r-N�r�
__module__�__qualname__�__firstlineno__�__doc__r0�__static_attributes__r-r!rr	r	4s
��B�
r!r	)�	metaclassc��\rSrSrSrSrSrg)r
�Dz>Abstract base class for path entry finders used by PathFinder.c��g)zsAn optional method for clearing the finder's cache, if any.
This method is used by PathFinder.invalidate_caches().
Nr-r.s rr0�!PathEntryFinder.invalidate_cachesHr2r!r-Nr3r-r!rr
r
Ds
��H�r!r
c�<�\rSrSrSr\RS5rSrg)r�Pz�Abstract base class for loaders which can return data from their
back-end storage.

This ABC represents one of the optional protocols specified by PEP 302.

c��[e)zoAbstract method which when implemented should return the bytes for
the specified path.  The path must be a str.)�OSError�r/�paths  r�get_data�ResourceLoader.get_dataYs	���
r!r-N)	rr4r5r6r7r�abstractmethodrDr8r-r!rrrPs!���	�����r!rc��\rSrSrSrSrSr\RS5r	\
S	Sj5r\RRr\RRrSrg)
r�`z�Abstract base class for loaders which support inspection about the
modules they can load.

This ABC represents one of the optional protocols specified by PEP 302.

c��[e)z�Optional method which when implemented should return whether the
module is a package.  The fullname is a str.  Returns a bool.

Raises ImportError if the module cannot be found.
��ImportError�r/�fullnames  r�
is_package�InspectLoader.is_packageis
���r!c�N�URU5nUcgURU5$)z�Method which returns the code object for the module.

The fullname is a str.  Returns a types.CodeType if possible, else
returns None if a code object does not make sense
(e.g. built-in module). Raises ImportError if the module cannot be
found.
N)�
get_source�source_to_code)r/rM�sources   r�get_code�InspectLoader.get_codeqs+������*���>���"�"�6�*�*r!c��[e)z�Abstract method which should return the source code for the
module.  The fullname is a str.  Returns a str.

Raises ImportError if the module cannot be found.
rJrLs  rrQ�InspectLoader.get_source~�
���r!c��[XSSS9$)z�Compile 'data' into a code object.

The 'data' argument can be anything that compile() can handle. The'path'
argument should be where the data was retrieved (when applicable).�execT)�dont_inherit)�compile)�datarCs  rrR�InspectLoader.source_to_code�s���t�6��=�=r!r-N)z<string>)rr4r5r6r7rNrTrrFrQ�staticmethodrRr�
_LoaderBasics�exec_module�load_moduler8r-r!rrr`sc����+�	�������>��>�&�3�3�?�?�K�%�3�3�?�?�Kr!rc�B�\rSrSrSr\RS5rSrSr	g)r
�z�Abstract base class for loaders that wish to support the execution of
modules as scripts.

This ABC represents one of the optional protocols specified in PEP 302.

c��[e)z�Abstract method which should return the value that __file__ is to be
set to.

Raises ImportError if the module cannot be found.
rJrLs  r�get_filename�ExecutionLoader.get_filename�rXr!c��URU5nUcgURU5nURX#5$![a URU5s$f=f)z�Method to return the code object for fullname.

Should return None if not applicable (e.g. built-in module).
Raise ImportError if the module cannot be found.
N)rQrfrRrK)r/rMrSrCs    rrT�ExecutionLoader.get_code�sd������*���>��	5��$�$�X�.�D��&�&�v�4�4���	/��&�&�v�.�.�	/�s�9�A�Ar-N)
rr4r5r6r7rrFrfrTr8r-r!rr
r
�s&���	������5r!r
c��\rSrSrSrSrg)r�zWAbstract base class partially implementing the ResourceLoader and
ExecutionLoader ABCs.r-N)rr4r5r6r7r8r-r!rrr�s��r!rc�*�\rSrSrSrSrSrSrSrg)r��a�Abstract base class for loading source code (and optionally any
corresponding bytecode).

To support loading from source code, the abstractmethods inherited from
ResourceLoader and ExecutionLoader need to be implemented. To also support
loading from bytecode, the optional methods specified directly by this ABC
is required.

Inherited abstractmethods not implemented in this ABC:

    * ResourceLoader.get_data
    * ExecutionLoader.get_filename

c��URR[RLa[e[	URU5S5$)z6Return the (int) modification time for the path (str).�mtime)�
path_stats�__func__rrA�intrBs  r�
path_mtime�SourceLoader.path_mtime�s8���?�?�#�#�|�'>�'>�>��M��4�?�?�4�(��1�2�2r!c��URR[RLa[eSURU50$)z�Return a metadata dict for the source pointed to by the path (str).
Possible keys:
- 'mtime' (mandatory) is the numeric timestamp of last source
  code modification;
- 'size' (optional) is the size in bytes of the source code.
ro)rsrqrrArBs  rrp�SourceLoader.path_stats�s5���?�?�#�#�|�'>�'>�>��M������.�/�/r!c��g)z�Write the bytes to the path (if possible).

Accepts a str path and data as bytes.

Any needed intermediary directories are to be created. If for some
reason the file cannot be written because of permissions, fail
silently.
Nr-)r/rCr]s   r�set_data�SourceLoader.set_data�r2r!r-N)	rr4r5r6r7rsrprxr8r-r!rrr�s��
�3�	0�r!r)$r7�rrrrK�excrr$�_abcrrr�	resourcesrrr r)�ABCMetar	�BuiltinImporter�FrozenImporter�
PathFinder�WindowsRegistryFinderr
�
FileFinderrr�NamespaceLoaderr
�ExtensionFileLoader�AppleFrameworkLoaderr�SourceFileLoader�SourcelessFileLoaderrr-r!r�<module>r�s���.�!����
5�%��
��,���
K�.�
�s�{�{�
�
�.�)�3�3�Y�5M�5M�
�
�
�	� ?� ?�A������
�/�9�/�/�0�
�V�
� 0@�F�0@�d
�-��2�2�I�4L�4L�i�Ng�Ng�h� 5�m� 5�D
��
�!�!�
�"�"���$�/�/����

�*�i�0�0��*�*�,�*�&�3�3�^�_�*�X
�,�	�2�2�3��[��
�x�x�&�&�
�������5�!4��5�s(�E,�F�,F�2F�F�F�F

?>