KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21571/root/usr/lib64/python2.4/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21571/root/usr/lib64/python2.4/imputil.pyo
mò
‚=5Dc@s*dZdkZdkZdkZdkZdkZdddgZedƒZeeƒZ	dfd„ƒYZ
dfd„ƒYZeodpd	Z
d
e
Zd„Zdaad„Zd
„Zd„Zdefd„ƒYZdefd„ƒYZd„Zdfd„ƒYZd„Zd„ZdS(s
Import utilities

Exported classes:
    ImportManager   Manage the import process

    Importer        Base class for replacing standard import functions
    BuiltinImporter Emulate the import mechanism for builtin and frozen modules

    DynLoadSuffixImporter
Nt
ImportManagertImportertBuiltinImportertcBsqtZdZeeƒd„Zd„Zd„ZeZ	ed„Z
eeed„Zd„Zd„Z
d„ZRS(	sManage the import process.cCsGt|tƒot|ƒ}n|d|_||_|i|d<dS(s8Install this ImportManager into the specified namespace.t
__import__N(t
isinstancet	namespacet_ModuleTypetvarstselftprevious_importert_import_hook(R	R((t/usr/lib64/python2.4/imputil.pytinstalls
	cCs|i|id<dS(s&Restore the previous import mechanism.RN(R	R
R(R	((Rt	uninstall.scCs|ii||ƒdS(N(R	tfs_impt
add_suffixtsuffixt
importFunc(R	RR((RR2scCs¥tptƒn|djo|ipt}|ƒ}n||_xIti	ƒD];}|dtijo!|i|dt
|ƒiƒqRqRW|idtƒdS(Niis.py(t_os_statt
_os_bootstrapRtNoneR	tclsFilesystemImportert_FilesystemImportertclstimptget_suffixestdesctC_EXTENSIONRtDynLoadSuffixImportertimport_filetpy_suffix_importer(R	RRR((Rt__init__=s

	

c
Cs[|idƒ}|i|ƒ}|o+|ii|||ƒ}|o|SqPnyti|d}	Wn>tj
o2|i|dƒ}	|	ptd|‚q¦nXt|ƒdjo.|p|	Sn|	iidƒp|	Sqçn|	iidƒ}|o|i|	|d|ƒSnt|ƒdjot|	|dƒo|	Sntd|‚dS(	s5Python calls this hook to locate and import a module.t.isNo module named it	__ispkg__t__importer__iN(tfqnametsplittpartsR	t_determine_import_contexttglobalstparentR#t
_do_importtfromlisttmoduletsystmodulest
top_moduletKeyErrort_import_top_moduletImportErrortlent__dict__tgettimportert_finish_importthasattr(
R	R$R(tlocalsR+R)R&R,R6R/((RRSs0'cCsŠ|p|idƒodSn|d}|doti|}|Sn|idƒ}|djodSn|| }ti|}|S(sJReturns the context in which a module should be imported.

        The context could be a loaded (package) module and the imported module
        will be looked for within that package. The context could also be None,
        meaning there is no context -- the module should be looked for as a
        "top-level" module.
        R#t__name__R"R!iÿÿÿÿN(	R(R5Rt
parent_fqnameR-R.R)trfindti(R	R(R)R=R;((RR's




cCs_xXtiD]M}t|tƒo|ii||ƒ}n|i
|ƒ}|o|Sq
q
WdS(N(R-tpathtitemRt_StringTypeR	Rtimport_from_dirtnameR,t
import_topR(R	RBR,R?((RR1¶s
cCs*|iidƒ}|pntd‚dS(s*Python calls this hook to reload a module.R#sreload not yet implementedN(R,R4R5R6tSystemError(R	R,R6((Rt_reload_hookÂs
(R:t
__module__t__doc__Rt__builtin__R
RRRRR RR'R1RE(((RRs			<	'	cBsVtZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(	s3Base class for replacing standard import functions.cCs|id||ƒS(sImport a top-level module.N(R	t_import_oneRRB(R	RB((RRCÖscCsC|i||ƒ}|p|Sn|io|i||ƒn|S(N(R	t
_load_tailttopR&tbottomR+R"t_import_fromlist(R	RKR&R+RL((RR7Þs
cCs€yti|SWntj
onX|i|||ƒ}|djodSn|i
||ƒ}|ot|||ƒn|S(sImport a single module.N(
R-R.R$R0R	tget_codeR)tmodnametresultRt_process_resultR,tsetattr(R	R)ROR$R,RP((RRIs
cBsÌ|\}}}e|eƒ}|o
|}nei|ƒ}||_||_|i
i|ƒ|ei|<|p>y||i
UWq²|eijoei|=n‚q²Xnei|}||_|S(N(tispkgtcodetvaluesRRt	is_moduleR,Rt
new_moduleR$R	R#R"R4tupdateR-R.R:(R	t.2R$RSRTRUR,RV((RRQs$
		

	cCsUxN|D]F}d|i|f}|i|||ƒ}|ptd|‚qqW|S(sˆImport the rest of the modules, down from the top-level module.

        Returns the last module in the dotted list of modules.
        s%s.%ssNo module named N(R&tparttmR:R$R	RIR2(R	R[R&R$RZ((RRJ:scCs­d|jo)t|ƒt|iidgƒƒ}nxp|D]h}|djoUt||ƒoDd|i|f}|i
|||ƒ}|ptd|‚q¥q=q=WdS(s*Import any sub-modules in the "from" list.t*t__all__s%s.%sscannot import name N(
R+tlisttpackageR4R5tsubR8R:tsubnameR	RItsubmodR2(R	R_R+R`RaRb((RRMFs
)cCsV|d}|id|}|i|||ƒ}|pdSn|i	||d|ƒS(s¨Attempt to import the module relative to parent.

        This method is used when the import context specifies that <self>
        imported the parent module.
        iR!iN(R&ttop_nameR)R:t
top_fqnameR	RIR/RR7R+(R	R)R&R+RcRdR/((RR*Xs
cCs
td‚dS(s£Find and retrieve the code for the given module.

        parent specifies a parent module to define a context for importing. It
        may be None, indicating no particular context for the search.

        modname specifies a single module (not dotted) within the parent.

        fqname specifies the fully-qualified module name. This is a
        (potentially) dotted name from the "root" of the module namespace
        down to the modname.
        If there is no parent, then modname==fqname.

        This method should return None, or a 3-tuple.

        * If the module was not found, then None should be returned.

        * The first item of the 2- or 3-tuple should be the integer 0 or 1,
            specifying whether the module that was found is a package or not.

        * The second item is the code object for the module (it will be
            executed within the new module's namespace). This item can also
            be a fully-loaded module object (e.g. loaded from a shared lib).

        * The third item is a dictionary of name/value pairs that will be
            inserted into new module before the code object is executed. This
            is provided in case the module's code expects certain values (such
            as where the module was found). When the second item is a module
            object, then these names/values will be inserted *after* the module
            has been loaded/initialized.
        sget_code not implementedN(tRuntimeError(R	R)ROR$((RRNks(R:RFRGRCR7RIRQRJRMR*RN(((RRÓs		#		$			tctos.pycCsît|dƒiƒ}|o|ddjo|d}nti||dƒ}yt|tdƒ}Wnt	j
onoX|i
dƒ|i
tid|ƒƒti||ƒ|iƒ|iddƒ|i
tiƒƒ|iƒ|S(
sNCompile (and cache) a Python source file.

    The file specified by <pathname> is compiled to a code object and
    returned.

    Presuming the appropriate privileges exist, the bytecodes will be
    saved back to the filesystem for future imports. The source file's
    modification timestamp must be provided as a Long value.
    trUiÿÿÿÿs
texectwbts<IiN(topentpathnametreadt
codestringRHtcompileRTt_suffix_chartftIOErrortwritetstructtpackt	timestamptmarshaltdumptflushtseekRt	get_magictclose(RmRwRTRrRo((Rt_compile˜s"	


cCsüti}d}d|jod}dkl}nd|jod}dkl}nyd|jod}dk	l}nUd|jod}dk
l}n1d|jodkl}d	„}n
td
‚|djo|d„}n|a
|adS(
sISet up 'os' module replacement functions for use during import bootstrap.tposixt/(sstattnts\tdostos2tmaccCsW|djo|Snd|jod|}n|ddjo|d}n||S(NRt:iÿÿÿÿ(tatb(R†R‡((RtjoinÌs

sno os specific module foundcCsQ|djo|Sn|d}|djp
||jo||Sn|||S(NRiÿÿÿÿR€(R†R‡tlastchartsep(R†R‡RŠR‰((RRˆØs

N(R-tbuiltin_module_namestnamesRRˆRŠRtstatRR‚RƒR„R2Rt
_os_path_join(RRˆRŠRŒ((RR¸s2	






		
cCs;yt|ƒ}Wntj
odSnX|id@djS(s&Local replacement for os.path.isdir().iði@N(RRmtstOSErrorRtst_mode(RmR((Rt_os_path_isdiræs	cCs7yt|ƒ}Wntj
odSnXt|iƒS(s,Return the file modification time as a Long.N(RRmRRRtlongtst_mtime(RmR((Rt
_timestampîs	cBstZd„ZRS(NcCs{|odSnti|ƒo
ti}n"ti|ƒo
ti}ndSti	|d|dd|fƒ}d|hfS(NRi(R)RRt
is_builtinROt	C_BUILTINttypet	is_frozent	PY_FROZENtload_moduleR,(R	R)ROR$R,R˜((RRNüs

!(R:RFRN(((RRûsRcBs5tZd„Zd„Zd„Zd„Zd„ZRS(NcCs
g|_dS(N(R	tsuffixes(R	((RR scCs|ii||fƒdS(N(R	RœtappendRR(R	RR((RRscCs:|it||ƒ|ƒ}|o|i||ƒSndS(N(R	t_import_pathnameRŽtdirR$RPRQR(R	RŸR$RP((RRAscCs|it|i|ƒ|ƒS(N(R	RžRŽR)t
__pkgdir__ROR$(R	R)ROR$((RRN!sc	CsËt|ƒo`|it|dƒ|ƒ}|o6|d}||d<|g|d<d|d|fSndSnxW|i	D]L\}}||}yt
|ƒ}Wntj
oqwX||||ƒSqwWdS(NR iR t__path__i(R’RmR	RžRŽR$RPRURRœRRtfilenameRtfinfoR(	R	RmR$RR£RRPRUR¢((RRž+s$
	




(R:RFR RRARNRž(((RRs
				
c	Cs|d t}t|dƒ}t|ƒ}d}|dj	o‰||jo|t
|dƒ}|idƒt
iƒjoCtid|idƒƒd}||joti|ƒ}q¸n|iƒn|djo|}t||ƒ}nd|hd|<fS(Niýÿÿÿitrbis<Iit__file__(R¢t_suffixtfileR“R£tt_pyR•tt_pycRRTRlRrRnRR|RutunpackttRxtloadR}R~(	R¢R£R$RTR©R§RrR«R¨((RREs

RcBstZd„Zd„ZRS(NcCs
||_dS(N(RR	(R	R((RR YscCsGt||idƒ}ti||||iƒ}||_	d|hfS(Nii(
RlR¢R	RtfpRR›R$R,R¥(R	R¢R£R$R­R,((RR\s	(R:RFR R(((RRXs	cCs`tiiƒ}|iƒx@|D]8\}}|o|G|iiddƒGHq |GdGHq WdS(NR#s-- no importers-- non-existent module(R-R.titemstsortRBR,R4R5(R®RBR,((Rt_print_importerses
cCs'tƒiƒtiidtƒƒdS(Ni(RR
R-R>tinsertR(((Rt_test_revampns
(RGRR-RHRuRxR]R˜R@RRRt	__debug__RqR¦R~RRRŽRR’R•RRRRR°R²(RRHRRRR²R@RuR]RRR~R-R’R¦R•RRR°RRxRq((Rt?s.					¸À
	
	.		
2	
		

Anon7 - 2021