Critics have remarked that those four worthies were truly peerless throughout the ages; yet the present falls short of the pastβ€”the ancients favored unadorned simplicity, whereas the moderns prefer refined elegance. Styles of substance and ornament rise and fall in succession, shifting with the changing mores of the times; such evolution is simply the natural order of things. The ideal lies in honoring antiquity without clashing with the present, and embracing modernity without succumbing to its flawsβ€”embodying that perfect balance of substance and refinement that defines the true gentleman. There is surely no need to abandon a carved palace in favor of a cave dwelling, or to trade a jade carriage for a primitive cart with solid wooden wheels.🌌 SpectraShell

🌌 SpectraShell

Current path: lib64/python3.6/__pycache__/



⬆️ Go up: /lib64/python3.6

πŸ“„ Viewing: runpy.cpython-36.pyc

3


 \οΏ½.οΏ½@sdZddlZddlZddlZddlZddlmZmZddgZ	GddοΏ½de
οΏ½ZGdd	οΏ½d	e
οΏ½Zd d
dοΏ½Z
d!dd
οΏ½ZefddοΏ½ZGddοΏ½deοΏ½Zd"ddοΏ½Zd#ddοΏ½ZefddοΏ½ZddοΏ½Zd$ddοΏ½ZedkοΏ½rοΏ½eejοΏ½dkοΏ½rοΏ½edejdοΏ½nejd=eejdοΏ½dS)%aZrunpy.py - locating and running Python code using the module namespace

Provides support for locating and running Python scripts using the Python
module namespace instead of the native filesystem.

This allows Python code to play nicely with non-filesystem based PEP 302
importers when locating support scripts as well as when importing modules.
οΏ½N)οΏ½	read_codeοΏ½get_importerοΏ½
run_moduleοΏ½run_pathc@s(eZdZdZddοΏ½ZddοΏ½ZddοΏ½ZdS)	οΏ½_TempModulezCTemporarily replace a module in sys.modules with an empty namespacecCs||_tj|οΏ½|_g|_dS)N)οΏ½mod_nameοΏ½typesοΏ½
ModuleTypeοΏ½moduleοΏ½
_saved_module)οΏ½selfrοΏ½r
οΏ½/usr/lib64/python3.6/runpy.pyοΏ½__init__sz_TempModule.__init__cCsB|j}y|jjtj|οΏ½Wntk
r0YnX|jtj|<|S)N)rrοΏ½appendοΏ½sysοΏ½modulesοΏ½KeyErrorr
)rrr
r
rοΏ½	__enter__sz_TempModule.__enter__cGs.|jr|jdtj|j<n
tj|j=g|_dS)Nr)rrrr)rοΏ½argsr
r
rοΏ½__exit__'s
z_TempModule.__exit__N)οΏ½__name__οΏ½
__module__οΏ½__qualname__οΏ½__doc__rrrr
r
r
rrs	rc@s$eZdZddοΏ½ZddοΏ½ZddοΏ½ZdS)οΏ½_ModifiedArgv0cCs||_tοΏ½|_|_dS)N)οΏ½valueοΏ½objectοΏ½_saved_valueοΏ½	_sentinel)rrr
r
rr/sz_ModifiedArgv0.__init__cCs0|j|jk	rtdοΏ½οΏ½tjd|_|jtjd<dS)NzAlready preserving saved valuer)rrοΏ½RuntimeErrorrοΏ½argvr)rr
r
rr3sz_ModifiedArgv0.__enter__cGs|j|_|jtjd<dS)Nr)rrrrr!)rrr
r
rr9sz_ModifiedArgv0.__exit__N)rrrrrrr
r
r
rr.src
	Csn|dk	r|j|οΏ½|dkr(d}|}d}	n |j}|j}|j}	|dkrH|j}|j|||	d|||dοΏ½t||οΏ½|S)z)Helper to run code in nominated namespaceN)rοΏ½__file__οΏ½
__cached__rοΏ½
__loader__οΏ½__package__οΏ½__spec__)οΏ½updateοΏ½loaderοΏ½originοΏ½cachedοΏ½parentοΏ½exec)
οΏ½codeZrun_globalsοΏ½init_globalsrοΏ½mod_specοΏ½pkg_nameοΏ½script_namer(οΏ½fnamer*r
r
rοΏ½	_run_code>s(

r3c	Cs^|dkr|n|j}t|οΏ½οΏ½6}t|οΏ½οΏ½"|jj}t|||||||οΏ½WdQRXWdQRX|jοΏ½S)z5Helper to run code in new namespace with sys modifiedN)r)rrr
οΏ½__dict__r3οΏ½copy)	r-r.rr/r0r1r2οΏ½temp_moduleοΏ½mod_globalsr
r
rοΏ½_run_module_codeXs r8c
;Cs4|jdοΏ½r|dοΏ½οΏ½|jdοΏ½\}}}|rοΏ½yt|οΏ½WnJtk
r|}z.|jdksj|j|krl|j|jdοΏ½rlοΏ½WYdd}~XnXtjj|οΏ½}|dk	rοΏ½t|dοΏ½rοΏ½ddl	m
}dj||dοΏ½}|t|οΏ½οΏ½yt
jj|οΏ½}WnJttttfk
οΏ½r}	z$d}||j|t|	οΏ½j|	οΏ½οΏ½|	οΏ½WYdd}	~	XnX|dkοΏ½r6|d	|οΏ½οΏ½|jdk	οΏ½rοΏ½|d
kοΏ½sX|jdοΏ½οΏ½r`|dοΏ½οΏ½y|d}
t|
|οΏ½S|k
οΏ½rοΏ½}z$|tjkοΏ½rοΏ½οΏ½|d||fοΏ½οΏ½WYdd}~XnX|j}|dkοΏ½rοΏ½|d|οΏ½οΏ½y|j|οΏ½}Wn2tk
οΏ½r}z|t|οΏ½οΏ½|οΏ½WYdd}~XnX|dkοΏ½r*|d|οΏ½οΏ½|||fS)NοΏ½.z#Relative module names not supportedοΏ½__path__r)οΏ½warnzοΏ½{mod_name!r} found in sys.modules after import of package {pkg_name!r}, but prior to execution of {mod_name!r}; this may result in unpredictable behaviour)rr0z:Error while finding module specification for {!r} ({}: {})zNo module named %sοΏ½__main__z	.__main__z%Cannot use package as __main__ modulez%s; %r is a package and cannot zbe directly executedz0%r is a namespace package and cannot be executedzNo code object available for %sz3%s; %r is a package and cannot be directly executed)οΏ½
startswithοΏ½
rpartitionοΏ½
__import__οΏ½ImportErrorοΏ½namerrοΏ½getοΏ½hasattrοΏ½warningsr;οΏ½formatοΏ½RuntimeWarningοΏ½	importlibοΏ½utilοΏ½	find_specοΏ½AttributeErrorοΏ½	TypeErrorοΏ½
ValueErrorοΏ½typerοΏ½submodule_search_locationsοΏ½endswithοΏ½_get_module_detailsr(οΏ½get_code)
rοΏ½errorr0οΏ½_οΏ½eZexistingr;οΏ½msgοΏ½specZexZ
pkg_main_namer(r-r
r
rrPfsZ

,

 
 
rPc@seZdZdZdS)οΏ½_ErrorzBError that _run_module_as_main() should report without a tracebackN)rrrrr
r
r
rrWοΏ½srWTcCsοΏ½y0|s|dkr t|tοΏ½\}}}nttοΏ½\}}}Wn:tk
rj}zdtj|f}tj|οΏ½WYdd}~XnXtjdj}|rοΏ½|jtj	d<t
||dd|οΏ½S)aοΏ½Runs the designated module in the __main__ namespace

       Note that the executed module will have full access to the
       __main__ namespace. If this is not desirable, the run_module()
       function should be used to run the module code in a fresh namespace.

       At the very least, these variables in __main__ will be overwritten:
           __name__
           __file__
           __cached__
           __loader__
           __package__
    r<z%s: %sNr)rPrWοΏ½_get_main_module_detailsrοΏ½
executableοΏ½exitrr4r)r!r3)rZ
alter_argvr/r-οΏ½excrUZmain_globalsr
r
rοΏ½_run_module_as_mainοΏ½sr\FcCs@t|οΏ½\}}}|dkr|}|r,t||||οΏ½St|i|||οΏ½SdS)znExecute a module's code without importing it

       Returns the resulting top level namespace dictionary
    N)rPr8r3)rr.οΏ½run_nameZ	alter_sysr/r-r
r
rrοΏ½scCs~d}tj|}tj|=zVyt|οΏ½Stk
rh}z,|t|οΏ½krV|d|tjdfοΏ½|οΏ½οΏ½WYdd}~XnXWd|tj|<XdS)Nr<zcan't find %r module in %rr)rrrPr@οΏ½strοΏ½path)rRZ	main_nameZ
saved_mainr[r
r
rrXοΏ½s
rXcCsTt|dοΏ½οΏ½}t|οΏ½}WdQRX|dkrLt|dοΏ½οΏ½}t|jοΏ½|dοΏ½}WdQRX||fS)NοΏ½rbr,)οΏ½openrοΏ½compileοΏ½read)r]r2οΏ½fr-r
r
rοΏ½_get_code_from_fileοΏ½srec Cs|dkrd}|jdοΏ½d}t|οΏ½}d}t|οΏ½jdkrFt|οΏ½jdkrFd}t|tdοΏ½οΏ½sX|rxt||οΏ½\}}t|||||d	οΏ½Stj	j
d|οΏ½zRtοΏ½\}}	}t|οΏ½οΏ½4}
t
|οΏ½οΏ½ |
jj}t|||||	|οΏ½jοΏ½SQRXWdQRXWdytj	j|οΏ½Wntk
οΏ½rYnXXdS)
a_Execute code located at the specified filesystem location

       Returns the resulting top level namespace dictionary

       The file path may refer directly to a Python script (i.e.
       one that could be directly executed with execfile) or else
       it may refer to a zipfile or directory containing a top
       level __main__.py script.
    Nz
<run_path>r9rFZimpZNullImporterT)r0r1)r>rrMrrοΏ½
isinstancerer8rr_οΏ½insertrXrrr
r4r3r5οΏ½removerL)Z	path_namer.r]r0ZimporterZis_NullImporterr-r2rr/r6r7r
r
rrοΏ½s0



"r<οΏ½z!No module specified for execution)οΏ½file)NNNNN)NNNNN)T)NNF)NN)rrοΏ½importlib.machineryrGοΏ½importlib.utilrZpkgutilrrοΏ½__all__rrrr3r8r@rPοΏ½	ExceptionrWr\rrXrerrοΏ½lenr!οΏ½printοΏ½stderrr
r
r
rοΏ½<module>s6

:



1



πŸ“