/usr/lib64/python3.9/importlib/__pycache__
NameSizeModeActions
abc.cpython-39.opt-1.pyc168170644editdlrm
abc.cpython-39.opt-2.pyc92540644editdlrm
abc.cpython-39.pyc168170644editdlrm
machinery.cpython-39.opt-1.pyc9640644editdlrm
machinery.cpython-39.opt-2.pyc8240644editdlrm
machinery.cpython-39.pyc9640644editdlrm
metadata.cpython-39.opt-1.pyc221740644editdlrm
metadata.cpython-39.opt-2.pyc160460644editdlrm
metadata.cpython-39.pyc221740644editdlrm
resources.cpython-39.opt-1.pyc63910644editdlrm
resources.cpython-39.opt-2.pyc49690644editdlrm
resources.cpython-39.pyc63910644editdlrm
util.cpython-39.opt-1.pyc93220644editdlrm
util.cpython-39.opt-2.pyc64530644editdlrm
util.cpython-39.pyc93220644editdlrm
_bootstrap.cpython-39.opt-1.pyc289520644editdlrm
_bootstrap.cpython-39.opt-2.pyc221930644editdlrm
_bootstrap.cpython-39.pyc289680644editdlrm
_bootstrap_external.cpython-39.opt-1.pyc458320644editdlrm
_bootstrap_external.cpython-39.opt-2.pyc345520644editdlrm
_bootstrap_external.cpython-39.pyc462440644editdlrm
_common.cpython-39.opt-1.pyc16990644editdlrm
_common.cpython-39.opt-2.pyc14600644editdlrm
_common.cpython-39.pyc16990644editdlrm
__init__.cpython-39.opt-1.pyc38330644editdlrm
__init__.cpython-39.opt-2.pyc31540644editdlrm
__init__.cpython-39.pyc38330644editdlrm
Edit: /usr/lib64/python3.9/importlib/__pycache__/_bootstrap.cpython-39.opt-1.pyc (28952B)
a ´i‚�ã@sÂdZdadd„Zdd„ZiZiZGdd„deƒZGdd „d ƒZGd d „d ƒZ Gd d „d ƒZ dd„Z dd„Z dd„Z ddœdd„Zdd„Zdd„Zdd„Zdd„ZGd d!„d!ƒZddd"œd#d$„Zd^d%d&„Zd'd(œd)d*„Zd+d,„Zd-d.„Zd/d0„Zd1d2„Zd3d4„Zd5d6„ZGd7d8„d8ƒZGd9d:„d:ƒZGd;d<„d<ƒZd=d>„Z d?d@„Z!d_dAdB„Z"dCdD„Z#dEZ$e$dFZ%dGdH„Z&e'ƒZ(dIdJ„Z)d`dLdM„Z*d'dNœdOdP„Z+dQdR„Z,dadTdU„Z-dVdW„Z.dXdY„Z/dZd[„Z0d\d]„Z1dS)baSCore implementation of import. This module is NOT meant to be directly imported! It has been designed such that it can be bootstrapped into Python as the implementation of import. As such it requires the injection of specific modules and attributes in order to work. One should use importlib as the public-facing version of this module. NcCs8dD] }t||ƒrt||t||ƒƒq|j |j¡dS)z/Simple substitute for functools.update_wrapper.)Ú __module__Ú__name__Ú __qualname__Ú__doc__N)ÚhasattrÚsetattrÚgetattrÚ__dict__Úupdate)ÚnewÚoldÚreplace©r ú,/usr/lib64/python3.9/importlib/_bootstrap.pyÚ_wraps rcCs ttƒ|ƒS©N)ÚtypeÚsys©Únamer r rÚ _new_module#src@s eZdZdS)Ú_DeadlockErrorN)rrrr r r rr0src@s8eZdZdZdd„Zdd„Zdd„Zdd „Zd d „Zd S) Ú _ModuleLockz©A recursive lock implementation which is able to detect deadlocks (e.g. thread 1 trying to take locks A then B, and thread 2 trying to take locks B then A). cCs0t ¡|_t ¡|_||_d|_d|_d|_dS©Né)Ú_threadÚ allocate_lockÚlockÚwakeuprÚownerÚcountÚwaiters©Úselfrr r rÚ__init__:s   z_ModuleLock.__init__cCsXt ¡}|j}tƒ}t |¡}|dur*dS|j}||kr.cb) rArBrCÚKeyErrorrr8rÚ_weakrefrErD)rrrFr r rr<¦s    r<cCs4t|ƒ}z | ¡Wnty&Yn 0| ¡dS)z½Acquires then releases the module lock for a given module name. This is used to ensure a module is completely initialized, in the event it is being imported by another thread. N)r<r.rr/)rrr r rÚ_lock_unlock_moduleËs   rIcOs||i|¤ŽS)a.remove_importlib_frames in import.c will always remove sequences of importlib frames that end with a call to this function Use it instead of a normal call in places where including the importlib frames introduces unwanted noise into the traceback (e.g. when executing module code) r )Úfr>Úkwdsr r rÚ_call_with_frames_removedÜsrLr-)Ú verbositycGs6tjj|kr2| d¡sd|}t|j|Žtjd�dS)z=Print the message to stderr if -v/PYTHONVERBOSE is turned on.)ú#zimport z# )ÚfileN)rÚflagsÚverboseÚ startswithÚprintr4Ústderr)ÚmessagerMr>r r rÚ_verbose_messageçs  rVcs‡fdd„}t|ˆƒ|S)z1Decorator to verify the named module is built-in.cs&|tjvrtd |¡|d�‚ˆ||ƒS)Nú{!r} is not a built-in moduler)rÚbuiltin_module_namesÚ ImportErrorr4©r"Úfullname©Úfxnr rÚ_requires_builtin_wrapperñs   ÿz4_requires_builtin.._requires_builtin_wrapper©r)r]r^r r\rÚ_requires_builtinïs  r`cs‡fdd„}t|ˆƒ|S)z/Decorator to verify the named module is frozen.cs&t |¡std |¡|d�‚ˆ||ƒS©Nz{!r} is not a frozen moduler)rAÚ is_frozenrYr4rZr\r rÚ_requires_frozen_wrapperüs   ÿz2_requires_frozen.._requires_frozen_wrapperr_)r]rcr r\rÚ_requires_frozenús  rdcCs>t||ƒ}|tjvr2tj|}t||ƒtj|St|ƒSdS)z€Load the specified module into sys.modules and return it. This method is deprecated. Use loader.exec_module instead. N)Úspec_from_loaderrÚmodulesÚ_execÚ_load)r"r[ÚspecÚmoduler r rÚ_load_module_shims      rkcCsÚt|ddƒ}t|dƒr6z | |¡WSty4Yn0z |j}WntyRYn0|durdt|ƒSz |j}Wnty„d}Yn0z |j}Wn8tyÈ|dur´d  |¡YSd  ||¡YSYn0d  ||¡SdS)NÚ __loader__Ú module_reprú?ú úú) rrrmÚ ExceptionÚ__spec__ÚAttributeErrorÚ_module_repr_from_specrÚ__file__r4)rjÚloaderrirÚfilenamer r rÚ _module_reprs.           ryc@sreZdZdZddddœdd„Zdd„Zdd „Zed d „ƒZej d d „ƒZed d„ƒZ edd„ƒZ e j dd„ƒZ dS)Ú ModuleSpecaÐThe specification for a module, used for loading. A module's spec is the source for information about the module. For data associated with the module, including source, use the spec's loader. `name` is the absolute name of the module. `loader` is the loader to use when loading the module. `parent` is the name of the package the module is in. The parent is derived from the name. `is_package` determines if the module is considered a package or not. On modules this is reflected by the `__path__` attribute. `origin` is the specific location used by the loader from which to load the module, if that information is available. When filename is set, origin will match. `has_location` indicates that a spec's "origin" reflects a location. When this is True, `__file__` attribute of the module is set. `cached` is the location of the cached bytecode file, if any. It corresponds to the `__cached__` attribute. `submodule_search_locations` is the sequence of path entries to search when importing submodules. If set, is_package should be True--and False otherwise. Packages are simply modules that (may) have submodules. If a spec has a non-None value in `submodule_search_locations`, the import system will consider modules loaded from the spec as packages. Only finders (see importlib.abc.MetaPathFinder and importlib.abc.PathEntryFinder) should modify ModuleSpec instances. N)ÚoriginÚ loader_stateÚ is_packagecCs6||_||_||_||_|r gnd|_d|_d|_dS)NF)rrwr{r|Úsubmodule_search_locationsÚ _set_fileattrÚ_cached)r"rrwr{r|r}r r rr#_szModuleSpec.__init__cCsfd |j¡d |j¡g}|jdur4| d |j¡¡|jdurP| d |j¡¡d |jjd |¡¡S)Nz name={!r}z loader={!r}z origin={!r}zsubmodule_search_locations={}z{}({})z, ) r4rrwr{Úappendr~Ú __class__rÚjoin)r"r>r r rr7ks  ÿ  ÿzModuleSpec.__repr__cCsj|j}zH|j|jkoL|j|jkoL|j|jkoL||jkoL|j|jkoL|j|jkWStydtYS0dSr)r~rrwr{ÚcachedÚ has_locationrtÚNotImplemented)r"ÚotherÚsmslr r rÚ__eq__us  ÿ þý ü û zModuleSpec.__eq__cCs:|jdur4|jdur4|jr4tdur&t‚t |j¡|_|jSr)r€r{rÚ_bootstrap_externalÚNotImplementedErrorÚ _get_cachedr6r r rr„�s  zModuleSpec.cachedcCs ||_dSr)r€)r"r„r r rr„ŠscCs$|jdur|j d¡dS|jSdS)z The name of the module's parent.NÚ.r)r~rÚ rpartitionr6r r rÚparentŽs zModuleSpec.parentcCs|jSr)rr6r r rr…–szModuleSpec.has_locationcCst|ƒ|_dSr)Úboolr)r"Úvaluer r rr…šs) rrrrr#r7r‰Úpropertyr„Úsetterr�r…r r r rrz:s $ÿ       rz©r{r}cCs˜t|dƒrJtdurt‚tj}|dur0|||d�S|r8gnd}||||d�S|durˆt|dƒr„z| |¡}Wqˆty€d}Yqˆ0nd}t||||d�S)z5Return a module spec based on various loader methods.Ú get_filenameN)rw)rwr~r}Fr”)rrŠr‹Úspec_from_file_locationr}rYrz)rrwr{r}r–Úsearchr r rreŸs$   ÿ   recCs*z |j}WntyYn0|dur*|S|j}|durVz |j}WntyTYn0z |j}Wntyvd}Yn0|dur°|dur¬z |j}Wq°ty¨d}Yq°0n|}z |j}WntyÐd}Yn0zt|jƒ}Wntyöd}Yn0t |||d�}|du�rdnd|_ ||_ ||_ |S)N©r{FT) rsrtrrlrvÚ_ORIGINÚ __cached__ÚlistÚ__path__rzrr„r~)rjrwr{rirÚlocationr„r~r r rÚ_spec_from_module¹sH               ržF©ÚoverridecCsÒ|st|ddƒdur4z |j|_Wnty2Yn0|sHt|ddƒdur®|j}|dur�|jdur�tdurlt‚tj}|  |¡}|j|_ ||_d|_ z ||_ Wnty¬Yn0|sÂt|ddƒdurâz |j |_WntyàYn0z ||_WntyþYn0|�st|ddƒdu�rF|jdu�rFz |j|_Wnt�yDYn0|j�rÎ|�sft|ddƒdu�rˆz |j|_ Wnt�y†Yn0|�s t|ddƒdu�rÎ|jdu�rÎz |j|_Wnt�yÌYn0|S)NrrlÚ __package__rœrvrš)rrrrtrwr~rŠr‹Ú_NamespaceLoaderÚ__new__Ú_pathrvrlr�r¡rsrœr…r{r„rš)rirjr rwr¢r r rÚ_init_module_attrsæs`                r¥cCsRd}t|jdƒr|j |¡}nt|jdƒr2tdƒ‚|durDt|jƒ}t||ƒ|S)z+Create a module based on the provided spec.NÚ create_moduleÚ exec_modulezBloaders that define exec_module() must also define create_module())rrwr¦rYrrr¥©rirjr r rÚmodule_from_spec.s    r©cCsj|jdurdn|j}|jdurB|jdur2d |¡Sd ||j¡Sn$|jrVd ||j¡Sd |j|j¡SdS)z&Return the repr to use for the module.Nrnrorprqú)rr{rwr4r…)rirr r rru?s   ruc Csú|j}t|ƒ�Øtj |¡|ur6d |¡}t||d�‚z„|jdurj|jdurZtd|jd�‚t ||dd�n4t ||dd�t |jdƒs’|j  |¡n |j  |¡Wtj  |j¡}|tj|j<ntj  |j¡}|tj|j<0Wdƒn1sì0Y|S)zFExecute the spec's specified module in an existing module's namespace.zmodule {!r} not in sys.modulesrNúmissing loaderTrŸr§)rr9rrfr'r4rYrwr~r¥rÚ load_moduler§Úpop)rirjrÚmsgr r rrgPs&      ÿ,rgcCsz|j |j¡Wn4|jtjvr@tj |j¡}|tj|j<‚Yn0tj |j¡}|tj|j<t|ddƒdur’z |j|_Wnty�Yn0t|ddƒdurÞz(|j |_ t |dƒsÈ|j  d¡d|_ WntyÜYn0t|ddƒdu�rz ||_ Wnt�yYn0|S)Nrlr¡rœr�rrs)rwr¬rrrfr­rrlrtrr¡rrŽrsr¨r r rÚ_load_backward_compatiblens6        r¯c Csà|jdurt|jdƒst|ƒSt|ƒ}d|_z¦|tj|j<z4|jdur`|jdurlt d|jd�‚n |j  |¡Wn0ztj|j=Wnt y–Yn0‚Yn0tj  |j¡}|tj|j<t d|j|jƒWd|_nd|_0|S)Nr§Tr«rzimport {!r} # {!r}F)rwrr¯r©Ú _initializingrrfrr~rYr§rGr­rVr¨r r rÚ_load_unlocked“s.       r±cCs6t|jƒ�t|ƒWdƒS1s(0YdS)z¿Return a new module object, loaded by the spec's loader. The module is not added to its parent. If a module is already in sys.modules, that existing module gets clobbered. N)r9rr±)rir r rrh½s rhc@sŒeZdZdZdZedd„ƒZeddd„ƒZeddd „ƒZ ed d „ƒZ ed d „ƒZ ee dd„ƒƒZ ee dd„ƒƒZee dd„ƒƒZeeƒZdS)ÚBuiltinImporterz�Meta path import for built-in modules. All methods are either class or static methods to avoid the need to instantiate the class. zbuilt-incCsd|j›dtj›d�S)úsReturn repr for the module. The method is deprecated. The import machinery does the job itself. z)rr²r™)rjr r rrm×szBuiltinImporter.module_reprNcCs.|dur dSt |¡r&t|||jd�SdSdS©Nr˜)rAÚ is_builtinrer™©Úclsr[ÚpathÚtargetr r rÚ find_specàs  zBuiltinImporter.find_speccCs| ||¡}|dur|jSdS)z¯Find the built-in module. If 'path' is ever specified then the search is considered a failure. This method is deprecated. Use find_spec() instead. N)rºrw)r·r[r¸rir r rÚ find_moduleés zBuiltinImporter.find_modulecCs.|jtjvr"td |j¡|jd�‚ttj|ƒS)zCreate a built-in modulerWr)rrrXrYr4rLrAÚcreate_builtin)r"rir r rr¦õs   ÿzBuiltinImporter.create_modulecCsttj|ƒdS)zExec a built-in moduleN)rLrAÚ exec_builtin)r"rjr r rr§ýszBuiltinImporter.exec_modulecCsdS)z9Return None as built-in modules do not have code objects.Nr ©r·r[r r rÚget_codeszBuiltinImporter.get_codecCsdS)z8Return None as built-in modules do not have source code.Nr r¾r r rÚ get_sourceszBuiltinImporter.get_sourcecCsdS)z4Return False as built-in modules are never packages.Fr r¾r r rr}szBuiltinImporter.is_package)NN)N)rrrrr™Ú staticmethodrmÚ classmethodrºr»r¦r§r`r¿rÀr}rkr¬r r r rr²Ìs,        r²c@s�eZdZdZdZedd„ƒZeddd„ƒZeddd „ƒZ ed d „ƒZ ed d „ƒZ edd„ƒZ ee dd„ƒƒZee dd„ƒƒZee dd„ƒƒZdS)ÚFrozenImporterzŽMeta path import for frozen modules. All methods are either class or static methods to avoid the need to instantiate the class. ÚfrozencCsd |jtj¡S)r³rª)r4rrÃr™)Úmr r rrm"szFrozenImporter.module_reprNcCs"t |¡rt|||jd�SdSdSr´)rArbrer™r¶r r rrº+s zFrozenImporter.find_speccCst |¡r|SdS)z]Find a frozen module. This method is deprecated. Use find_spec() instead. N)rArb)r·r[r¸r r rr»2szFrozenImporter.find_modulecCsdS)z*Use default semantics for module creation.Nr )r·rir r rr¦;szFrozenImporter.create_modulecCs@|jj}t |¡s$td |¡|d�‚ttj|ƒ}t||j ƒdSra) rsrrArbrYr4rLÚget_frozen_objectÚexecr)rjrÚcoder r rr§?s  ÿ zFrozenImporter.exec_modulecCs t||ƒS)z_Load a frozen module. This method is deprecated. Use exec_module() instead. )rkr¾r r rr¬HszFrozenImporter.load_modulecCs t |¡S)z-Return the code object for the frozen module.)rArÆr¾r r rr¿QszFrozenImporter.get_codecCsdS)z6Return None as frozen modules do not have source code.Nr r¾r r rrÀWszFrozenImporter.get_sourcecCs t |¡S)z.Return True if the frozen module is a package.)rAÚis_frozen_packager¾r r rr}]szFrozenImporter.is_package)NN)N)rrrrr™rÁrmrÂrºr»r¦r§r¬rdr¿rÀr}r r r rrÃs.        rÃc@s eZdZdZdd„Zdd„ZdS)Ú_ImportLockContextz$Context manager for the import lock.cCs t ¡dS)zAcquire the import lock.N)rArBr6r r rr=jsz_ImportLockContext.__enter__cCs t ¡dS)z= 0z__package__ not set to a stringz6attempted relative import with no known parent packagezEmpty module nameN)Ú isinstanceÚstrÚ TypeErrorr4rÚ ValueErrorrY©rrÑrÒr r rÚ _sanity_check´s    rãzNo module named z{!r}c Csd}| d¡d}|r„|tjvr*t||ƒ|tjvr>tj|Stj|}z |j}Wn0ty‚td ||¡}t||d�d‚Yn0t ||ƒ}|durªtt |¡|d�‚nt |ƒ}|�rtj|}| d¡d}zt |||ƒWn0t�yd|›d|›�}t   |t¡Yn0|S)Nr�rz; {!r} is not a packagerézCannot set an attribute on z for child module )rŽrrfrLrœrtÚ_ERR_MSGr4ÚModuleNotFoundErrorrÝr±rrÙrÚrÛ) rÚimport_r¸r�Ú parent_moduler®rirjÚchildr r rÚ_find_and_load_unlockedÇs4         rêcCs€t|ƒ�>tj |t¡}|tur8t||ƒWdƒSWdƒn1sL0Y|durtd |¡}t||d�‚t|ƒ|S)zFind and load the module.Nz(import of {} halted; None in sys.modulesr) r9rrfr'Ú_NEEDS_LOADINGrêr4rærI)rrçrjrUr r rÚ_find_and_loadês 6ÿ rìrcCs*t|||ƒ|dkr t|||ƒ}t|tƒS)a2Import and return the module based on its name, the package the call is being made from, and the level adjustment. This function represents the greatest common denominator of functionality between import_module and __import__. This includes setting __package__ if the loader did not. r)rãrÕrìÚ _gcd_importrâr r rríús  rí©Ú recursivec Csè|D]Þ}t|tƒsB|r"|jd}nd}td|›dt|ƒj›�ƒ‚q|dkrl|sât|dƒrât||j|dd�qt||ƒsd  |j|¡}zt ||ƒWqt yà}z6|j |krÊt j  |t¡d urÊWYd }~q‚WYd }~qd }~00q|S) zîFigure out what __import__ should return. The import_ parameter is a callable which takes the name of module to import. It is required to decouple the function from assuming importlib's import implementation is desired. z.__all__z ``from list''zItem in z must be str, not Ú*Ú__all__TrîrÎN)rÞrßrràrrÚ_handle_fromlistrñr4rLrærrrfr'rë)rjÚfromlistrçrïÚxÚwhereÚ from_nameÚexcr r rrò s0    ÿ  ÿ  ÿ ròcCs’| d¡}| d¡}|durR|durN||jkrNtjd|›d|j›d�tdd�|S|dur`|jStjd tdd�|d }d |vrŽ| d ¡d }|S)z§Calculate what __package__ should be. __package__ is not guaranteed to be defined or could be set to None to represent that its proper value is unknown. r¡rsNz __package__ != __spec__.parent (z != ú)é)Ú stacklevelzYcan't resolve package from __spec__ or __package__, falling back on __name__ and __path__rrœr�r)r'r�rÙrÚrÛrŽ)ÚglobalsrÑrir r rÚ_calc___package__.s*  ÿÿþþrür c Cs´|dkrt|ƒ}n$|dur|ni}t|ƒ}t|||ƒ}|s–|dkrTt| d¡dƒS|s\|St|ƒt| d¡dƒ}tj|jdt|jƒ|…Snt|dƒr¬t||tƒS|SdS)a×Import a module. The 'globals' argument is used to infer where the import is occurring from to handle relative imports. The 'locals' argument is ignored. The 'fromlist' argument specifies what should exist as attributes on the module being imported (e.g. ``from module import ``). The 'level' argument represents the package location to import from in a relative import (e.g. ``from ..pkg import mod`` would have a 'level' of 2). rNr�rœ) rírüÚ partitionrÐrrfrrrò) rrûÚlocalsrórÒrjÚglobals_rÑÚcut_offr r rÚ __import__Is      rcCs&t |¡}|durtd|ƒ‚t|ƒS)Nzno built-in module named )r²rºrYr±)rrir r rÚ_builtin_from_namens  rc Cs¦|a|attƒ}tj ¡D]H\}}t||ƒr|tjvrs^M%   $e -H%*KO   /  % %#