MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/2/root/proc/3/cwd/usr/lib/python2.4/Demo/imputil/importers.pyc
mς
‚=5Dc@s/dkZdkZdkZdkZdkZdkZefƒZedƒZe	odpdZ
de
Zed„ei
ƒƒZd„Zd„Zdeifd	„ƒYZd
„Zdeifd„ƒYZd
efd„ƒYZdeifd„ƒYZdeifd„ƒYZd„Zd„ZdS(Nttctos.pycCs|dtijS(Ni(txtimptC_EXTENSION(R((t,/usr/lib/python2.4/Demo/imputil/importers.pyt<lambda>"scCs;yti|ƒ}Wntj
odSnXt|dƒS(s,Return the file modification time as a Long.iN(toststattpathnametstOSErrortNonetlong(R
R((Rt
_timestamp$s	cCstii||ƒ}
tii|
ƒo:hd|
<d|
g<}d}tii|
dƒ}
nˆh}d}xxt	D]p}
|
|
d}yt||
dƒ}Wntj
oquXti||||
ƒ}||d<d||fSquWt|
dƒ}t|
tƒ}	|djo|	djodSnd}|djp|	dj	o“|	|jo†|
t}t|dƒ}|id	ƒtiƒjoCtid
|id	ƒƒd}||joti |ƒ}qΠn|i!ƒn|djo|
d}t"||ƒ}n||d<|||fS(s#Fetch a module from the filesystem.t
__pkgdir__t__path__it__init__it__file__s.pytrbis<IN(#RtpathtjointdirtmodnameR
tisdirtvaluestispkgt_c_suffixestdesctfiletopentfptIOErrorRtload_moduletfqnametmoduleRtt_pyt_suffixtt_pycR
tcodetftreadt	get_magictstructtunpacktttmarshaltloadtcloset_compile(RRR#R(RR$R%RR R'RR)RR
R.((Rt
_fs_import,sH
'




tFuncImportercBs tZdZd„Zd„ZRS(sIImporter subclass to delegate to a function rather than method overrides.cCs
||_dS(N(tfunctself(R6R5((RR^scCs|i|||ƒS(N(R6R5tparentRR#(R6R7RR#((Rtget_code`s(t__name__t
__module__t__doc__RR8(((RR4\s	cCst|ƒiƒdS(N(R4R5tinstall(R5((Rtinstall_withcstPackageArchiveImportercBs)tZdZd„Zd„Zd„ZRS(sΓImporter subclass to import from (file) archives.

    This Importer handles imports of the style <archive>.<subfile>, where
    <archive> can be located using a subclass-specific mechanism and the
    <subfile> is found in the archive using a subclass-specific mechanism.

    This class defines two hooks for subclasses: one to locate an archive
    (and possibly return some context for future subfile lookups), and one
    to locate subfiles.
    cCsΙ|oˆ|i|jpt‚|i|i|ƒ}|djodSnt	|t
ƒo&t|ƒdjpt‚d|Snd|hfSn|i|ƒ}|djodSnddhd|<fS(NiiiRt__archive__(i(R7t__importer__R6tAssertionErrortget_subfileR?RtresultR
t
isinstancet
_TupleTypetlentget_archivetarchive(R6R7RR#RCRH((RR8ws

cCs
td‚dS(s[Get an archive of modules.

        This method should locate an archive and return a value which can be
        used by get_subfile to load modules from it. The value may be a simple
        pathname, an open file, or a complex object that caches information
        for future imports.

        Return None if the archive was not found.
        sget_archive not implementedN(tRuntimeError(R6R((RRGŽs	cCs
td‚dS(s|Get code from a subfile in the specified archive.

        Given the specified archive (as returned by get_archive()), locate
        and return a code object for the specified module name.

        A 2-tuple may be returned, consisting of a code object and a dict
        of name/values to place into the target module.

        Return None if the subfile was not found.
        sget_subfile not implementedN(RI(R6RHR((RRBšs
(R9R:R;R8RGRB(((RR>ks
		tPackageArchivecBs tZdZd„Zd„ZRS(sBPackageArchiveImporter subclass that refers to a specific archive.cCs||_||_dS(N(RR6t_PackageArchive__modnametarchive_pathnamet_PackageArchive__path(R6RRL((RR«s	cCs||ijo|iSndS(N(RR6RKRMR
(R6R((RRG―s(R9R:R;RRG(((RRJ¨s	tDirectoryImportercBs)tZdZd„Zd„Zd„ZRS(s3Importer subclass to emulate the standard importer.cCs
||_dS(N(RR6(R6R((RRΎscCs-|o
|i}n
|i}t|||ƒS(N(R7RRR6R3RR#(R6R7RR#R((RR8Αs
	cCs)d|ii|ii|it|ƒfS(Ns<%s.%s for "%s" at 0x%x>(R6t	__class__R:R9Rtid(R6((Rt__repr__Λs(R9R:R;RR8RQ(((RRN»s		
tPathImportercBs tZeid„Zd„ZRS(NcCs
||_dS(N(RR6(R6R((RRΧscCsk|ot|i||ƒSnxF|iD];}t|t	ƒo%t|||ƒ}|o|Sqcq(q(WdS(N(R7R3RRR#R6RRRDt_StringTypeRCR
(R6R7RR#RCR((RR8Ϊs
(R9R:tsysRRR8(((RRRΦscCsktiƒiƒti}|iƒx'|D]}tiidt|ƒƒq+Wtiidti	ƒƒdS(s?Debug/test function to create DirectoryImporters from sys.path.iN(
timputilt
ImportManagerR<RTRtreversetdtinsertRNtBuiltinImporter(RXR((Rt	_test_dirλs

cCsCtiƒiƒtiidtƒƒtiidtiƒƒdS(s3Debug/test function for the revamped import system.iN(RURVR<RTRRYRRRZ(((Rt_test_revampτs(RTRR,R/RURttypeRERSt	__debug__t_suffix_charR&tfiltertget_suffixesRRR3tImporterR4R=R>RJRNRRR[R\(R[RRR3RURR>R\RSR,R=RRJRNRTR&RERR4RR/R_((Rt?s(						
		0	=