config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/modulefinder.pyc

³ò
h”Rc@sOdZddkZddkZddkZddkZddkZddkZeeidƒo
dZ	ndZ	ei
idƒZei
idƒZ
ei
idƒZei
id	ƒZeegZhZd
„ZhZd„Zdfd
„ƒYZdfd„ƒYZd„Zedjo,y
eƒZWnej
odGHnXndS(s3Find modules used by a script, using introspection.iÿÿÿÿNtnewlinestUtrt
LOAD_CONSTtIMPORT_NAMEt
STORE_NAMEtSTORE_GLOBALcCs-ti|gƒ}|i|ƒ|t|<dS(N(tpackagePathMaptgettappend(tpackagenametpathtpaths((s(/usr/local/lib/python2.5/modulefinder.pytAddPackagePath!s
cCs|t|<dS(N(treplacePackageMap(toldnametnewname((s(/usr/local/lib/python2.5/modulefinder.pytReplacePackage-stModulecBs eZddd„Zd„ZRS(cCs:||_||_||_d|_h|_h|_dS(N(t__name__t__file__t__path__tNonet__code__tglobalnameststarimports(tselftnametfileR((s(/usr/local/lib/python2.5/modulefinder.pyt__init__3s					cCsnd|if}|idj	o|d|if}n|idj	o|d|if}n|d}|S(Ns	Module(%rs, %rt)(RRRR(Rts((s(/usr/local/lib/python2.5/modulefinder.pyt__repr__@s
N(Rt
__module__RRR (((s(/usr/local/lib/python2.5/modulefinder.pyR1s
tModuleFindercBsøeZddggd„Zd„Zd„Zd„Zd„Zd„Zddd„Z	d„Z
d	„Zd
„Zdd„Z
d„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zdd„Zd„Zd„Zd„Zd„ZRS(icCsf|djo
ti}n||_h|_h|_||_d|_||_||_g|_	dS(Ni(
RtsysRtmodulest
badmodulestdebugtindenttexcludest
replace_pathstprocessed_paths(RRR&R(R)((s(/usr/local/lib/python2.5/modulefinder.pyRKs

							cGsV||ijoBxt|iƒD]
}dGq W|Gx|D]}t|ƒGq9WHndS(Ns   (R&trangeR'trepr(Rtleveltstrtargstitarg((s(/usr/local/lib/python2.5/modulefinder.pytmsgWscGs?|d}||ijo!|id|_|i|ŒndS(Nii(R&R'R2(RR/R-((s(/usr/local/lib/python2.5/modulefinder.pytmsgin`s
cGs?|d}||ijo!|id|_|i|ŒndS(Nii(R&R'R2(RR/R-((s(/usr/local/lib/python2.5/modulefinder.pytmsgoutfs
cCsN|idd|ƒt|tƒ}ddtif}|id|||ƒdS(Nit
run_scripttRt__main__(R2topent	READ_MODEtimpt	PY_SOURCEtload_module(Rtpathnametfptstuff((s(/usr/local/lib/python2.5/modulefinder.pyR5lscCsktii|ƒ\}}tii|ƒ\}}t|tƒ}|dtif}|i||||ƒdS(NR(	tosRtsplittsplitextR8R9R:R;R<(RR=tdirRtextR>R?((s(/usr/local/lib/python2.5/modulefinder.pyt	load_filers
cCsƒ|idd|||ƒ|i|ƒ}|i||ƒ\}}|i||ƒ}|p|Sn|io|i||ƒndS(Nitimport_hook(R2tdetermine_parenttfind_head_packaget	load_tailRtensure_fromlistR(RRtcallertfromlisttparenttqttailtm((s(/usr/local/lib/python2.5/modulefinder.pyRFys
cCsú|idd|ƒ|p|iddƒdSn|i}|io<|i|}||jpt‚|idd|ƒ|Snd|joX|idƒ}|| }|i|}|i|jpt‚|idd|ƒ|Sn|iddƒdS(NiRGsdetermine_parent -> Nonesdetermine_parent ->t.(R3R4RRRR$tAssertionErrortrfind(RRKtpnameRMR0((s(/usr/local/lib/python2.5/modulefinder.pyRG„s&	




cCs?|idd||ƒd|jo+|idƒ}|| }||d}n
|}d}|od|i|f}n|}|i|||ƒ}|o'|idd||fƒ||fSn|oS|}d}|i|||ƒ}|o'|idd||fƒ||fSqn|idd|ƒtd	|‚dS(
NiRHRQiR6s%s.%ssfind_head_package ->s"raise ImportError: No module namedsNo module named (R3tfindRt
import_moduleR4RtImportError(RRMRR0theadROtqnameRN((s(/usr/local/lib/python2.5/modulefinder.pyRH™s.

cCsÚ|idd||ƒ|}x¤|oœ|idƒ}|djot|ƒ}n|| ||d}}d|i|f}|i|||ƒ}|p$|idd|ƒtd|‚qqW|idd	|ƒ|S(
NiRIRQiis%s.%ss"raise ImportError: No module namedsNo module named sload_tail ->(R3RUtlenRRVR4RW(RRNRORPR0RXtmname((s(/usr/local/lib/python2.5/modulefinder.pyRI´s
cCsË|idd|||ƒx«|D]£}|djo<|p1|i|ƒ}|o|i||dƒqkqÃq t||ƒpDd|i|f}|i|||ƒ}|ptd|‚qÃq q WdS(NiRJt*is%s.%ssNo module named (R2tfind_all_submodulesRJthasattrRRVRW(RRPRLt	recursivetsubtalltsubnametsubmod((s(/usr/local/lib/python2.5/modulefinder.pyRJÃs
cCs|ipdSnh}g}x%tiƒD]}|i|dƒq+WxË|iD]À}yti|ƒ}Wn,tij
o|idd|ƒqPnXxu|D]m}d}x<|D]4}	t	|	ƒ}
||
|	jo||
 }Pq²q²W|o|djo|||<qŸqŸWqPW|i
ƒS(Niiscan't list directoryR(RR:tget_suffixesR	R@tlistdirterrorR2RRZtkeys(RRPR$tsuffixesttripleRCtnamesRtmodtsufftn((s(/usr/local/lib/python2.5/modulefinder.pyR]Ñs4


	cCsq|idd|||ƒy|i|}Wntj
onX|idd|ƒ|S|ii|ƒo|iddƒdSn|o(|idjo|iddƒdSny,|i||o|i|ƒ\}}}Wn*t	j
o|idddƒdSnXz|i
||||ƒ}Wd|o|iƒnX|ot|||ƒn|idd|ƒ|S(NiRVsimport_module ->simport_module -> None(
R3R$tKeyErrorR4R%thas_keyRRtfind_moduleRWR<tclosetsetattr(RtpartnametfqnameRMRPR>R=R?((s(/usr/local/lib/python2.5/modulefinder.pyRVìs6	#	c
Cs‚|\}}}|idd||od|ƒ|tijo-|i||ƒ}|idd|ƒ|Sn|tijo t|iƒd|dƒ}	nw|tijo`|idƒti	ƒjo$|idd|ƒt
d	|‚n|idƒti|ƒ}	nd}	|i|ƒ}||_|	o:|io|i|	ƒ}	n|	|_|i|	|ƒn|idd|ƒ|S(
NiR<R>sload_module ->s
texecis#raise ImportError: Bad magic numbersBad magic number in %s(R3R:t
PKG_DIRECTORYtload_packageR4R;tcompiletreadtPY_COMPILEDt	get_magicRWtmarshaltloadRt
add_moduleRR)treplace_paths_in_codeRt	scan_code(
RRtR>R=t.4tsuffixtmodettypeRPtco((s(/usr/local/lib/python2.5/modulefinder.pyR<
s0  
	
	cCs9||ijoh|i|<nd|i||i<dS(Ni(R%R(RRRK((s(/usr/local/lib/python2.5/modulefinder.pyt_add_badmodule$scCs-||ijo|i||ƒdSny|i||ƒWn>tj
o2}|iddt|ƒƒ|i||ƒn®X|o¥x¢|D]–}||ijo|i||ƒq‹ny|i|||gƒWq‹tj
o@}|iddt|ƒƒ|d|}|i||ƒq‹Xq‹WndS(NisImportError:RQ(R%R†RFRWR2R.(RRRKRLR2R`tfullname((s(/usr/local/lib/python2.5/modulefinder.pyt_safe_import_hook)s(cCs¡|i}t|ƒ}d}d}x;||jo-||}|d}t|ƒ}|tijo4t||ƒt||dƒd}	|d}n|tjo|i|	}q$|tjoo|djpt	|ƒt
jpt‚|i|	}
d}|dj	oMd|jo
d}ng}|D]}
|
djo||
q)q)~}n|i
|
||ƒ|o½d}|io!|ii|id|
ƒ}n|djo|ii|
ƒ}n|dj	oK|ii|iƒ|ii|iƒ|idjod|i|
<q'q+d|i|
<qZq$|tjo|i|	}
d|i|
<q$q$Wx;|iD]0}t|t	|ƒƒo|i||ƒqiqiWdS(NiiiiR\RQ(tco_codeRZRtordtdist
HAVE_ARGUMENTRt	co_constsRR„ttupleRRtco_namesRˆRR$RRRtupdateRRt	STORE_OPSt
isinstanceR€(RR…RPtcodeRmR0RLtctoptopargRt	have_start_[1]tftmm((s(/usr/local/lib/python2.5/modulefinder.pyR€@sT	


&

'



6
!




cCsÁ|idd||ƒti|ƒ}|o
|}n|i|ƒ}||_|g|_|iti|gƒ|_|id|iƒ\}}}|i||||ƒ|i	dd|ƒ|S(NiRwRsload_package ->(
R3RRR~RRRRpR<R4(RRtR=RRPR>tbufR?((s(/usr/local/lib/python2.5/modulefinder.pyRwus
	cCs=|ii|ƒo|i|Snt|ƒ|i|<}|S(N(R$RoR(RRtRP((s(/usr/local/lib/python2.5/modulefinder.pyR~†scCs¯|dj	o|id|}n|}||ijo |idd|ƒt|‚n|djo:|tijoddddtiffSn|i	}nti
||ƒS(NRQisfind_module -> ExcludedR6(RRR(R4RWR#tbuiltin_module_namesR:t	C_BUILTINRRp(RRRRMR‡((s(/usr/local/lib/python2.5/modulefinder.pyRpŒs



cCsCHddGHddGH|iiƒ}|iƒxH|D]@}|i|}|iodGndGd|G|ipdGHq3W|iƒ\}}|oRHd	GHxI|D]=}|i|iƒ}|iƒd
G|GdGdi|ƒGHqWn|oVHd
GdGHxI|D]=}|i|iƒ}|iƒd
G|GdGdi|ƒGHqúWndS(s’Print a report to stdout, listing the found modules with their
        paths, as well as modules that are missing, or seem to be missing.
        s
  %-25s %stNametFiles----tPRPs%-25sR6sMissing modules:t?s
imported froms, s7Submodules thay appear to be missing, but could also bes#global names in the parent package:N(RžRŸ(s----s----(R$RgtsortRRtany_missing_maybeR%tjoin(RRgtkeyRPtmissingtmaybeRtmods((s(/usr/local/lib/python2.5/modulefinder.pytreports<		



"
cCs|iƒ\}}||S(s½Return a list of modules that appear to be missing. Use
        any_missing_maybe() if you want to know which modules are
        certain to be missing, and which *may* be missing.
        (R£(RR¦R§((s(/usr/local/lib/python2.5/modulefinder.pytany_missingÂscCs.g}g}x|iD]ö}||ijoqn|idƒ}|djo|i|ƒqn||d}|| }|ii|ƒ}|dj	oe||i|jo|i|ƒq||ijoq|io|i|ƒq|i|ƒq|i|ƒqW|i	ƒ|i	ƒ||fS(s®Return two lists, one with modules that are certainly missing
        and one with modules that *may* be missing. The latter names could
        either be submodules *or* just global names in the package.

        The reason it can't always be determined is that it's impossible to
        tell which names are imported when "from module import *" is done
        with an extension module, short of actually importing it.
        RQiiN(
R%R(RSR	R$RRRRR¢(RR¦R§RR0Rbtpkgnametpkg((s(/usr/local/lib/python2.5/modulefinder.pyR£Ês2	







cCs‹tii|iƒ}}x@|iD]5\}}|i|ƒo||t|ƒ}Pq#q#W|iof||ijoV||jo|i	dd||fƒn|i	dd|fƒ|ii
|ƒnt|iƒ}xOt
t|ƒƒD];}t||t|ƒƒo|i||ƒ||<qîqîWti|i|i|i|i|it|ƒ|i|i||i|i|i|i|iƒS(Nisco_filename %r changed to %rs co_filename %r remains unchanged( R@Rtnormpathtco_filenameR)t
startswithRZR&R*R4R	tlistRR+R’R„RtnewR“tco_argcountt
co_nlocalstco_stacksizetco_flagsR‰RŽRtco_varnamestco_nametco_firstlinenot	co_lnotabtco_freevarstco_cellvars(RR…tnew_filenametoriginal_filenameR™RtconstsR0((s(/usr/local/lib/python2.5/modulefinder.pyRøs.
	
N(RR!RRR2R3R4R5RERFRGRHRIRJR]RVR<R†RˆR€RwR~RpR©RªR£R(((s(/usr/local/lib/python2.5/modulefinder.pyR"Is0															5			%		.cCs;ddk}y#|itiddƒ\}}Wn!|ij
o}|GHdSnXd}d}g}g}x¢|D]š\}}	|djo|d}n|djo
d}n|djo||	itiƒ}n|djo
d}n|d	jo|i|	ƒqrqrW|p
d
}
n|d}
ti}tii	|
ƒ|d<||}|djo)dGHx!|D]}dGt
|ƒGHqnWnt|||ƒ}
x€|dD]t}|djo
d}q¨n|o@|d
djo|
i|d
 ddgƒq|
i|ƒq¨|
i|ƒq¨W|
i|
ƒ|
iƒ|
S(Niÿÿÿÿisdmp:qx:is-ds-ms-ps-qs-xshello.pyspath:s   iþÿÿÿs.*R\(tgetoptR#targvRfRAR@tpathsepR	RtdirnameR,R"RFRRER5R©(R¿toptsR/R2R&tdomodstaddpathtexcludetotatscriptRtitemtmfR1((s(/usr/local/lib/python2.5/modulefinder.pyttests^#	














R7s
[interrupt](t__doc__R‹R:R|R@R#R±R^t
__stdout__R9topnametindexRRRRR‘RR
RRRR"RÌRRËtKeyboardInterrupt(((s(/usr/local/lib/python2.5/modulefinder.pys<module>s6
		ÿÌ	;



Man Man