
    F\h                     D   S r SSKJr  SSKJr   SSKr SSKrSSK	J
r
  SSKrSSKrSSKJr  / S	QrS
 rS r " S S\R$                  S9r\" \\R(                  \R*                  \R,                  \R.                  5         " S S\R$                  S9r\" \\R2                  5         " S S\
5      r " S S\
5      r\" \\R(                  \R*                  \R8                  5         " S S\5      r\" \\R<                  \R>                  5         " S S\R@                  \\5      r \" \ \RB                  \RD                  5         " S S\RF                  \\5      r#\" \#\RB                  5        g! \ a  r\R                  S:w  a  e Sr SrCGNwSrCff = f! \ a    \r GNf = 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=  [        [         U 5      n[        R                  " [
         SU  3SS9  U[        5       U '   U$ [        S[
        < SU < 35      e)zo
For backwards compatibility, continue to make names
from _resources_abc available through this module. #93963
.)      )removezmodule z has no attribute )_resources_abc__all__getattrwarnings_deprecated__name__globalsAttributeError)nameobjs     $/usr/lib/python3.13/importlib/abc.py__getattr__r       sb    
 ~%%%nd+z4&1'B	$

78,.@I
JJ    c                     U HI  nU R                  U5        [        c  M   [        [        UR                  5      nU R                  U5        MK     g ! [         a    [        [
        UR                  5      n N<f = f)N)registerr   r   r   r   _frozen_importlib_external)abstract_clsclassescls
frozen_clss       r   	_registerr)   )   sk    c"(O$%6E
 !!*- 
 " O$%?N
Os   A$A87A8c                       \ rS rSrSrS rSrg)r	   4   z8Abstract 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!   r   r	   r	   4   s
    B
r!   r	   )	metaclassc                       \ rS rSrSrS rSrg)r
   D   z>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    r   r0   !PathEntryFinder.invalidate_cachesH   r2   r!   r-   Nr3   r-   r!   r   r
   r
   D   s
    Hr!   r
   c                   <    \ rS rSrSr\R                  S 5       rSrg)r   P   zAbstract 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_dataY   s	     r!   r-   N)	r   r4   r5   r6   r7   r   abstractmethodrD   r8   r-   r!   r   r   r   P   s!     	 r!   r   c                       \ rS rSrSrS rS r\R                  S 5       r	\
S	S j5       r\R                  R                  r\R                  R                  rSrg)
r   `   zAbstract 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)zOptional 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_packagei   s
     r!   c                 N    U R                  U5      nUc  gU R                  U5      $ )zMethod 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_codeq   s+     *>""6**r!   c                     [         e)zAbstract 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.
rJ   rL   s     r   rQ   InspectLoader.get_source~   
     r!   c                     [        XSSS9$ )zCompile '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)datarC   s     r   rR   InspectLoader.source_to_code   s     t6==r!   r-   N)z<string>)r   r4   r5   r6   r7   rN   rT   r   rF   rQ   staticmethodrR   r   _LoaderBasicsexec_moduleload_moduler8   r-   r!   r   r   r   `   sc    + 	  > > &33??K%33??Kr!   r   c                   B    \ rS rSrSr\R                  S 5       rS rSr	g)r      zAbstract 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)zAbstract method which should return the value that __file__ is to be
set to.

Raises ImportError if the module cannot be found.
rJ   rL   s     r   get_filenameExecutionLoader.get_filename   rX   r!   c                     U R                  U5      nUc  g U R                  U5      nU R                  X#5      $ ! [         a    U R                  U5      s $ f = f)zMethod 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)rQ   rf   rR   rK   )r/   rM   rS   rC   s       r   rT   ExecutionLoader.get_code   sd     *>	5$$X.D &&v44  	/&&v..	/s   9 AAr-   N)
r   r4   r5   r6   r7   r   rF   rf   rT   r8   r-   r!   r   r   r      s&     	 5r!   r   c                       \ rS rSrSrSrg)r      zWAbstract base class partially implementing the ResourceLoader and
ExecutionLoader ABCs.r-   N)r   r4   r5   r6   r7   r8   r-   r!   r   r   r      s    r!   r   c                   *    \ rS rSrSrS rS rS rSrg)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                     U R                   R                  [        R                   L a  [        e[	        U R                  U5      S   5      $ )z6Return the (int) modification time for the path (str).mtime)
path_stats__func__r   rA   intrB   s     r   
path_mtimeSourceLoader.path_mtime   s8    ??##|'>'>>M4??4(122r!   c                     U R                   R                  [        R                   L a  [        eSU R                  U5      0$ )zReturn 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   )rs   rq   r   rA   rB   s     r   rp   SourceLoader.path_stats   s5     ??##|'>'>>M.//r!   c                     g)zWrite 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/   rC   r]   s      r   set_dataSourceLoader.set_data   r2   r!   r-   N)	r   r4   r5   r6   r7   rs   rp   rx   r8   r-   r!   r   r   r      s    3	0r!   r   )$r7    r   r   r   rK   excr   r$   _abcr   r   r   	resourcesr   r   r    r)   ABCMetar	   BuiltinImporterFrozenImporter
PathFinderWindowsRegistryFinderr
   
FileFinderr   r   NamespaceLoaderr   ExtensionFileLoaderAppleFrameworkLoaderr   SourceFileLoaderSourcelessFileLoaderr   r-   r!   r   <module>r      s   . ! 
5%  
  ,
K.
s{{ 
 
.)33Y5M5M


	 ? ?A  
/9// 0V  0@F 0@d 
-22I4L4LiNgNg h 5m  5D 
!!""$// 
 
*i00**,*&33^_ *X 
,	22 3[  
xx&&  5!45s(   E, F ,F2FFFF