Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.147.66.200
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : runpy.cpython-32.pyo
l
��bc@s|dZddlZddlZddlmZyddlmZWn"ek
rfddlmZYnXddgZGd�de�Z	Gd	�d
e�Z
dddddd�Zdddddd�Z
d
�Zd�Zdd�Zdddd�Zd�Zd�Zd�Zddd�Zedkrxeej�dkrZeddej�qxejd=eejd�ndS(uZrunpy.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.
iN(u	read_code(u
get_loaderu
run_moduleurun_pathcBs/|EeZdZd�Zd�Zd�ZdS(uCTemporarily replace a module in sys.modules with an empty namespacecCs(||_tj|�|_g|_dS(N(umod_nameuimpu
new_moduleumoduleu
_saved_module(uselfumod_name((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu__init__s	cCsM|j}y|jjtj|�Wntk
r8YnX|jtj|<|S(N(umod_nameu
_saved_moduleuappendusysumodulesuKeyErrorumodule(uselfumod_name((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu	__enter__s	
cGs=|jr#|jdtj|j<n
tj|j=g|_dS(Ni(u
_saved_moduleusysumodulesumod_name(uselfuargs((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu__exit__(s	
N(u__name__u
__module__u__doc__u__init__u	__enter__u__exit__(u
__locals__((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu_TempModules
			u_TempModulecBs)|EeZd�Zd�Zd�ZdS(cCs ||_t�|_|_dS(N(uvalueuobjectu_saved_valueu	_sentinel(uselfuvalue((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu__init__0s	cCsE|j|jk	r!td��ntjd|_|jtjd<dS(NuAlready preserving saved valuei(u_saved_valueu	_sentineluRuntimeErrorusysuargvuvalue(uself((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu	__enter__4scGs |j|_|jtjd<dS(Ni(u	_sentineluvalueu_saved_valueusysuargv(uselfuargs((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu__exit__:sN(u__name__u
__module__u__init__u	__enter__u__exit__(u
__locals__((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu_ModifiedArgv0/s
		u_ModifiedArgv0c
Cs[|dk	r|j|�n|jd|d|ddddd|d|�t||�|S(u)Helper to run code in nominated namespaceu__name__u__file__u
__cached__u__doc__u
__loader__u__package__N(uNoneuupdateuexec(ucodeurun_globalsuinit_globalsumod_nameu	mod_fnameu
mod_loaderupkg_name((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu	_run_code>s
cCsZt|��B}t|��-|jj}t|||||||�WdQXWdQX|j�S(u5Helper to run code in new namespace with sys modifiedN(u_TempModuleu_ModifiedArgv0umoduleu__dict__u	_run_codeucopy(ucodeuinit_globalsumod_nameu	mod_fnameu
mod_loaderupkg_nameutemp_moduleumod_globals((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu_run_module_codeMs
cCs=x6dD].}t||d�}|dk	r||�SqWdS(Nuget_filenameu
_get_filename(uget_filenameu
_get_filename(ugetattruNone(uloaderumod_nameuattrumeth((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu
_get_filename^s

cCst|�}|dkr+td|��n|j|�r�|dksU|jd�rdtd��ny|d}t|�SWq�tk
r�}ztdd||f��WYdd}~Xq�Xn|j|�}|dkr�td|��nt||�}||||fS(NuNo module named %su__main__u	.__main__u%Cannot use package as __main__ moduleu%s; %r is a package and cannot ube directly executeduNo code object available for %s(u
get_loaderuNoneuImportErroru
is_packageuendswithu_get_module_detailsuget_codeu
_get_filename(umod_nameuloaderu
pkg_main_nameueucodeufilename((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu_get_module_detailsfs"
*c
Cs	yF|s|dkr0t|�\}}}}nt�\}}}}Wnktk
r�}zK|rpt|�}ndtjd}dtj|f}tj|�WYdd}~XnX|jd�d}tj	dj
}	|r�|tjd<nt||	dd|||�S(u�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__
    u__main__u"can't find '__main__' module in %riu%s: %sNu.(
u_get_module_detailsu_get_main_module_detailsuImportErrorustrusysuargvu
executableuexitu
rpartitionumodulesu__dict__u	_run_codeuNone(
umod_nameu
alter_argvuloaderucodeufnameuexcuinfoumsgupkg_nameumain_globals((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu_run_module_as_main}s  cCst|�\}}}}|dkr-|}n|jd�d}|r_t||||||�St|i|||||�SdS(unExecute a module's code without importing it

       Returns the resulting top level namespace dictionary
    u.iN(u_get_module_detailsuNoneu
rpartitionu_run_module_codeu	_run_code(umod_nameuinit_globalsurun_nameu	alter_sysuloaderucodeufnameupkg_name((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu
run_module�s	
cCsud}yt|�SWnZtk
rp}z:|t|�kr[td|tjdf��n�WYdd}~XnXdS(Nu__main__ucan't find %r module in %ri(u_get_module_detailsuImportErrorustrusysupath(u	main_nameuexc((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu_get_main_module_details�scCs�tj}y||}Wn�tk
r�d||<xctjD],}y||�}PWq;tk
rfYq;Xq;Wytj|�}Wntk
r�dSYnX|||<YnX|S(u5Python version of PyImport_GetImporter C API functionN(usysupath_importer_cacheuKeyErroruNoneu
path_hooksuImportErroruimpuNullImporter(u	path_nameucacheuimporteruhook((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu
_get_importer�s"	


	
	cCsgt|d��}t|�}WdQX|dkrct|d��}t|j�|d�}WdQXn|S(Nurbuexec(uopenu	read_codeuNoneucompileuread(ufnameufucode((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu_get_code_from_file�s!c
&CsP|dkrd}n|jd�d}t|�}t|tj�rkt|�}t||||d|�Stj	j
d|�z�d}tj|}tj|=zt�\}}	}}
Wd|tj|<Xt
|��H}t|��3|jj}t|||||
|	|�j�SWdQXWdQXWdytj	j|�Wntk
rJYnXXdS(u_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.
    u
<run_path>u.iupkg_nameu__main__N(uNoneu
rpartitionu
_get_importeru
isinstanceuimpuNullImporteru_get_code_from_fileu_run_module_codeusysupathuinsertumodulesu_get_main_module_detailsu_TempModuleu_ModifiedArgv0umoduleu__dict__u	_run_codeucopyuremoveu
ValueError(
u	path_nameuinit_globalsurun_nameupkg_nameuimporterucodeu	main_nameu
saved_mainumod_nameuloaderufnameutemp_moduleumod_globals((u,/usr/local/python-3.2/lib/python3.2/runpy.pyurun_path�s2
	


&
u__main__iu!No module specified for executionufileTF(u__doc__usysuimpupkgutilu	read_codeu
get_loaderuImportErroru__all__uobjectu_TempModuleu_ModifiedArgv0uNoneu	_run_codeu_run_module_codeu
_get_filenameu_get_module_detailsuTrueu_run_module_as_mainuFalseu
run_moduleu_get_main_module_detailsu
_get_importeru_get_code_from_fileurun_pathu__name__ulenuargvuprintustderr(((u,/usr/local/python-3.2/lib/python3.2/runpy.pyu<module>s<

		&			
2

© 2025 GrazzMean