python (3.11.7)

(root)/
lib/
python3.11/
importlib/
__pycache__/
util.cpython-311.opt-1.pyc

e,HdZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
dd	lmZdd
lmZddlm
Z
ddlmZd
dlmZd
dlZd
dlZd
dlZd
dlZd
dlZdZdZddZddZedZdZdZdZGddejZGddeZ dS)z-Utility code for constructing importers, etc.)Loader)module_from_spec)
_resolve_name)spec_from_loader)
_find_spec)MAGIC_NUMBER)_RAW_MAGIC_NUMBER)cache_from_source)
decode_source)source_from_cache)spec_from_file_location)contextmanagerNc6tjt|S)zBReturn the hash of *source_bytes* as used in hash-based pyc files.)_impsource_hashr	)source_bytess B/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/importlib/util.pyrrs-|<<<c|ds|S|s tdt|dd}|D]}|dkrn|dz
}t||d||S)z2Resolve a relative module name to an absolute one..zno package specified for z% (required for relative module names)rrN)
startswithImportErrorreprr)namepackagelevel	characters    rresolve_namers??3B
BAd4jjAAABB	B
E	E

effw666rc(|tjvrt||Stj|}|dS	|j}|"t	d||S#t$r$t	d|dwxYw)aReturn the spec for the specified module.

    First, sys.modules is checked to see if the module was already imported. If
    so, then sys.modules[name].__spec__ is returned. If that happens to be
    set to None, then ValueError is raised. If the module is not in
    sys.modules, then sys.meta_path is searched for a suitable spec with the
    value of 'path' given to the finders. None is returned if no spec could
    be found.

    Dotted names do not have their parent packages implicitly imported. You will
    most likely need to explicitly import all parent packages in the proper
    order for a submodule to get the correct spec.

    N{}.__spec__ is None{}.__spec__ is not set)sysmodulesr__spec__
ValueErrorformatAttributeError)rpathmodulespecs    r_find_spec_from_pathr,*s3;$%%%T">4	?D| !6!=!=d!C!CDDDK	N	N	N5<<TBBCCM	NsA##.Bc>|drt||n|}|tjvrt|dd}|rEt|dg}	|j}n,#t$r}td|d|||d}~wwxYwd}t||Stj|}|dS	|j
}|"td	||S#t$r$td
|dwxYw)aReturn the spec for the specified module.

    First, sys.modules is checked to see if the module was already imported. If
    so, then sys.modules[name].__spec__ is returned. If that happens to be
    set to None, then ValueError is raised. If the module is not in
    sys.modules, then sys.meta_path is searched for a suitable spec with the
    value of 'path' given to the finders. None is returned if no spec could
    be found.

    If the name is for submodule (contains a dot), the parent module is
    automatically imported.

    The name and package arguments work the same as importlib.import_module().
    In other words, relative module names (with leading dots) work.

    rr__path__)fromlistz __path__ attribute not found on z while trying to find )rNr!r")
rrr#r$
rpartition
__import__r.r(ModuleNotFoundErrorrr%r&r')	rrfullnameparent_nameparentparent_pather*r+s	         r	find_specr8Is}"/3ooc.B.BL|D'***Hs{""))#..q1		zlCCCF
P$o!
P
P
P)9{99,499?GIIINOP
P
K(K000X&>4	?D| !6!=!=d!C!CDDDK	N	N	N5<<TBBCCM	Ns$&A..
B8BBC...Dc#bK|tjv}tj|}|s3tt|}d|_|tj|<	|Vn1#t
$r$|s	tj|=n#t$rYnwxYwYnwxYwd|_dS#d|_wxYw)NTF)r#r$gettype__initializing__	ExceptionKeyError)r	is_reloadr*s   r_module_to_loadr@vs#I
[__T
"
"F#c4#'"D	(	
K%%



	#(%''''sN&A+*B%+B8
BB
BBBBB%BB%%	B.cFtjfd}|S)zOSet __package__ on the returned module.

    This function is deprecated.

    ctjdtd|i|}t|ddA|j|_t
|ds%|jdd|_|S)NkThe import system now takes care of this automatically; this decorator is slated for removal in Python 3.12
stacklevel__package__r.rr)warningswarnDeprecationWarninggetattr__name__rGhasattrr0)argskwargsr*fxns   rset_package_wrapperz(set_package.<locals>.set_package_wrappers
L(Q	8	8	8	8d%f%%6=$//7!'F6:..
K%+%7%B%B3%G%G%J"
r	functoolswraps)rPrQs` rset_packagerUs;_S					rcFtjfd}|S)zNSet __loader__ on the returned module.

    This function is deprecated.

    ctjdtd|g|Ri|}t|dd||_|S)NrCrDrE
__loader__)rHrIrJrKrX)selfrNrOr*rPs    rset_loader_wrapperz&set_loader.<locals>.set_loader_wrappersg
L(Q	8	8	8	8T+D+++F++6<..6 $F
rrR)rPrZs` r
set_loaderr[s;_Src~tjdtdtjfd}|S)a*Decorator to handle selecting the proper module for loaders.

    The decorated function is passed the module to use instead of the module
    name. The module passed in to the function is either from sys.modules if
    it already exists or is a new module. If the module is new, then __name__
    is set the first argument to the method, __loader__ is set to self, and
    __package__ is set accordingly (if self.is_package() is defined) will be set
    before it is passed to the decorated function (if self.is_package() does
    not work for the module it will be set post-load).

    If an exception is raised and the decorator created the module it is
    subsequently removed from sys.modules.

    The decorator assumes that the decorated function takes the module name as
    the second argument.

    rCrDrEc.t|5}||_	||}|r||_n8|dd|_n#t
tf$rYnwxYw||g|Ri|cdddS#1swxYwYdS)Nrr)r@rX
is_packagerGr0rr()rYr3rNrOr*r^rPs      rmodule_for_loader_wrapperz4module_for_loader.<locals>.module_for_loader_wrappers

X
&
&	6& $F
E!__X66
E)1F&&)1)<)<S)A)A!)DF&&
 0



3tV5d555f55	6	6	6	6	6	6	6	6	6	6	6	6	6	6	6	6	6	6s3B
A+B
A.+B
-A..B

BB)rHrIrJrSrT)rPr_s` rmodule_for_loaderr`sa$
MH$4444_S
6
6
6
6
6%$rceZdZdZdZdZdS)_LazyModulezKA subclass of the module type which triggers loading upon attribute access.cPtj|_|jj}|jjd}|j}i}|D]@\}}||vr|||<t||t||kr|||<A|jj	
||tjvrCt|ttj|krtd|d|j|t||S)z8Trigger the load of the module and return the attribute.__dict__zmodule object for z. substituted in sys.modules during a lazy load)types
ModuleType	__class__r%rloader_staterditemsidloaderexec_moduler#r$r&updaterK)rYattr
original_name
attrs_then	attrs_now
attrs_updatedkeyvalues        r__getattribute__z_LazyModule.__getattribute__s4
)
*
]/
;
M	
#//++	+	+JC*$$%*
c""IcN##r*S/':':::%*
c"
((...CK''$xx2ck-89999 ")m")")")***
	

]+++tT"""rcP||t||dS)z/Trigger the load and then perform the deletion.N)rudelattr)rYrns  r__delattr__z_LazyModule.__delattr__s.	
d###drN)rL
__module____qualname____doc__rurxrrrbrbs9UU # # #DrrbcPeZdZdZedZedZdZdZ	dZ
dS)
LazyLoaderzKA loader that creates a module which defers loading until attribute access.cDt|dstddS)Nrlz loader must define exec_module())rM	TypeError)rks r__check_eager_loaderzLazyLoader.__check_eager_loaders0v}--	@>???	@	@rc<fdS)z>Construct a callable which returns the eager loader made lazy.c&|i|SNr|)rNrOclsrks  r<lambda>z$LazyLoader.factory.<locals>.<lambda>s ss664+B6+B+B'C'Cr)_LazyLoader__check_eager_loader)rrks``rfactoryzLazyLoader.factorys,	  (((CCCCCCrc>||||_dSr)rrk)rYrks  r__init__zLazyLoader.__init__s!!!&)))rc6|j|Sr)rk
create_module)rYr+s  rrzLazyLoader.create_modules{((...rc|j|j_|j|_i}|j|d<|j|d<||j_t|_dS)zMake the module load lazily.rdrgN)rkr%rXrdcopyrgrhrb)rYr*rhs   rrlzLazyLoader.exec_module"s\!% K
#)?#7#7#9#9Z $*$4[!'3$&rN)rLryrzr{staticmethodrclassmethodrrrrlr|rrr~r~sUU@@\@DD[D
///'''''rr~r)!r{_abcr
_bootstraprrrr_bootstrap_externalrr	r
rrr

contextlibrrrSr#rerHrrr,r8r@rUr[r`rfrbr~r|rr<module>rs33((((((%%%%%%((((((""""""------222222222222......222222888888%%%%%%



===
777>****Z(((2($%%%%%%P+++++%"+++\"'"'"'"'"'"'"'"'"'"'r