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 :  /usr/lib64/python2.4/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.4/imputil.pyc
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+t|ƒpt‚|ii||ƒdS(N(tcallablet
importFunctAssertionErrorR	tfs_impt
add_suffixtsuffix(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.R8R1((RRSs0'cCs¸|p|idƒodSn|d}|do,ti|}||ijpt‚|Sn|i	dƒ}|djodSn|| }ti|}|i|jpt‚|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*R7Rt
parent_fqnameR/R0R+R6RtrfindtiR<(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	RDR.RA((RR3¶s
cCs*|iidƒ}|pntd‚dS(s*Python calls this hook to reload a module.R%sreload not yet implementedN(R.R6R7R8tSystemError(R	R.R8((Rt_reload_hookÂs
(R<t
__module__t__doc__Rt__builtin__R
RRRRR"RR)R3RG(((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_oneRRD(R	RD((RREÖscCsC|i||ƒ}|p|Sn|io|i||ƒn|S(N(R	t
_load_tailttopR(tbottomR-R$t_import_fromlist(R	RMR(R-RN((RR9Þs
cCs€yti|SWntj
onX|i|||ƒ}|djodSn|i
||ƒ}|ot|||ƒn|S(sImport a single module.N(
R/R0R&R2R	tget_codeR+tmodnametresultRt_process_resultR.tsetattr(R	R+RQR&R.RR((RRKs
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$R6tupdateR/R0R<(R	t.2R&RURVRWR.RX((RRSs$
		

	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	RKR4(R	R]R(R&R\((RRL: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-tlisttpackageR6R7tsubR:R<tsubnameR	RKtsubmodR4(R	RaR-RbRcRd((RROFs
)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	RKR1RR9R-(R	R+R(R-ReRfR1((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+RQR&((RRPks(R<RHRIRER9RKRSRLROR,RP(((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
codestringRJtcompileRVt_suffix_chartftIOErrortwritetstructtpackt	timestamptmarshaltdumptflushtseekRt	get_magictclose(RoRyRVRtRq((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ŒRtstatRƒR„R…R†R4Rt
_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(RRotstOSErrorRtst_mode(RoR‘((Rt_os_path_isdiræs	cCs7yt|ƒ}Wntj
odSnXt|iƒS(s,Return the file modification time as a Long.N(RRoR‘R’Rtlongtst_mtime(RoR‘((Rt
_timestampîs	cBstZd„ZRS(NcCs{|odSnti|ƒo
ti}n"ti|ƒo
ti}ndSti	|d|dd|fƒ}d|hfS(NRi(R+RRt
is_builtinRQt	C_BUILTINttypet	is_frozent	PY_FROZENtload_moduleR.(R	R+RQR&R.Rš((RRPüs

!(R<RHRP(((RRûsRcBs5tZd„Zd„Zd„Zd„Zd„ZRS(NcCs
g|_dS(N(R	tsuffixes(R	((RR"scCs.t|ƒpt‚|ii||fƒdS(N(RRRR	RžtappendR(R	RR((RRscCs:|it||ƒ|ƒ}|o|i||ƒSndS(N(R	t_import_pathnameRtdirR&RRRSR(R	R¡R&RR((RRCscCs*|pt‚|it|i|ƒ|ƒS(N(R+RR	R Rt
__pkgdir__RQR&(R	R+RQR&((RRP!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”RoR	R RR&RRRWRRžRRtfilenameRtfinfoR’(	R	RoR&RR¥RRRRWR¤((RR +s$
	




(R<RHR"RRCRPR (((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_pycRRVRnRtRpRR~RwtunpackttRztloadRR€(	R¤R¥R&RVR«R©RtR­Rª((RR!Es

RcBstZd„Zd„ZRS(NcCs
||_dS(N(RR	(R	R((RR"YscCsGt||idƒ}ti||||iƒ}||_	d|hfS(Nii(
RnR¤R	RtfpRRR&R.R§(R	R¤R¥R&R¯R.((RR \s	(R<RHR"R (((RRXs	cCs`tiiƒ}|iƒx@|D]8\}}|o|G|iiddƒGHq |GdGHq WdS(NR%s-- no importers-- non-existent module(R/R0titemstsortRDR.R6R7(R°RDR.((Rt_print_importerses
cCs'tƒiƒtiidtƒƒdS(Ni(RR
R/R@tinsertR(((Rt_test_revampns
(RIRR/RJRwRzR_RšRBRRRt	__debug__RsR¨R€RRRRR”R—RRR!RR²R´(RRJRRRR´RBRwR_RRR€R/R”R¨R—RRR²R!RzRs((Rt?s.					¸À
	
	.		
2	
		

Anon7 - 2021