config root man

Current Path : /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 : //usr/local/lib/python2.5/pyclbr.pyc

hRc	@sdZddkZddkZddkZddklZlZlZlZddk	l
Z
ddddgZhZddd	YZ
ddd
YZgdZgdZdd
ZdZdZdZedjoendS(sParse a Python module and describe its classes and methods.

Parse enough of a Python file to recognize imports and class and
method definitions, and to find out the superclasses of a class.

The interface consists of a single function:
        readmodule_ex(module [, path])
where module is the name of a Python module, and path is an optional
list of directories where the module is to be searched.  If present,
path is prepended to the system search path sys.path.  The return
value is a dictionary.  The keys of the dictionary are the names of
the classes defined in the module (including classes that are defined
via the from XXX import YYY construct).  The values are class
instances of the class Class defined here.  One special key/value pair
is present for packages: the key '__path__' has a list as its value
which contains the package search path.

A class is described by the class Class in this module.  Instances
of this class have the following instance variables:
        module -- the module name
        name -- the name of the class
        super -- a list of super classes (Class instances)
        methods -- a dictionary of methods
        file -- the file in which the class was defined
        lineno -- the line in the file on which the class statement occurred
The dictionary of methods uses the method names as keys and the line
numbers on which the method was defined as values.
If the name of a super class is not recognized, the corresponding
entry in the list of super classes is not a class instance but a
string giving the name of the super class.  Since import statements
are recognized and imported modules are scanned as well, this
shouldn't happen often.

A function is described by the class Function in this module.
Instances of this class have the following instance variables:
        module -- the module name
        name -- the name of the class
        file -- the file in which the class was defined
        lineno -- the line in the file on which the class statement occurred
iN(tNAMEtDEDENTtNEWLINEtOP(t
itemgettert
readmodulet
readmodule_extClasstFunctioncBs eZdZdZdZRS(s"Class to represent a Python class.cCsQ||_||_|djo
g}n||_h|_||_||_dS(N(tmoduletnametNonetsupertmethodstfiletlineno(tselfR	R
RRR((s"/usr/local/lib/python2.5/pyclbr.pyt__init__7s		

			cCs||i|<dS(N(R
(RR
R((s"/usr/local/lib/python2.5/pyclbr.pyt
_addmethodAs(t__name__t
__module__t__doc__RR(((s"/usr/local/lib/python2.5/pyclbr.pyR5s	
cBseZdZdZRS(s.Class to represent a top-level Python functioncCs(||_||_||_||_dS(N(R	R
RR(RR	R
RR((s"/usr/local/lib/python2.5/pyclbr.pyRFs			(RRRR(((s"/usr/local/lib/python2.5/pyclbr.pyRDscCsTt||}h}x8|iD]*\}}t|to|||<q"q"W|S(s}Backwards compatible interface.

    Call readmodule_ex() and then only keep Class objects from the
    resulting dictionary.(t_readmoduletitemst
isinstanceR(R	tpathtdicttrestkeytvalue((s"/usr/local/lib/python2.5/pyclbr.pyRLs
cCs
t||S(sRead a module file and return a dictionary of classes.

    Search for MODULE in PATH and sys.path, read and parse the
    module and return a dictionary with one entry for each class
    found in the module.

    If INPACKAGE is true, it must be the dotted name of the package in
    which we are searching for a submodule, and then PATH must be the
    package search path; otherwise, we are searching for a top-level
    module, and PATH is combined with sys.path.
    (R(R	R((s"/usr/local/lib/python2.5/pyclbr.pyRYsc&Cs||od||f}n|}|tjot|Snh}|tijo|o|t|<|Sn|id}|djo]|| }||d}t|||}|od||f}nt||d|Snd}	|o(ti||\}	}
\}}}
n,ti||ti\}	}
\}}}
|
ti	joE|
g|d<|
g|}tid|
g\}	}
\}}}
n|t|<|
ti
jo|	i|Sng}ti
|	i}y|xu|D]m\}}}}}|tjo;|\}}x<|o |dd|jo|d=qWq|djo|\}}x(|o |dd|jo|d=q_W|i\}}}}}|tjoqn|o6|dd}t|to|i||qnt|||
|||<|id|fq|d	jo|\}}x(|o |dd|jo|d=q?W|i\}}}}}|tjoqn|i\}}}}}d}|d
jog}d}g}xto|i\}}}}}|djo|djod
i|}||jo||}nq|id}t|djoN|d} |d}| tjo)t| }!||!jo|!|}qqn|i|g}n|d
jo|d7}q|djo |d8}|djoPq]q|djo|djoq|ttfjo|djo|i|qqW|}nt||||
|}|p|||<n|i||fq|djo|ddjot|}"xv|"D]i\}#}$yS|pt|#|n8yt|#||Wn tj
ot|#gnXWqqXqWq|djo|ddjot|\}#}|#p
|djoqnt|}yt|#||}!Wn
qnXx|D]w\}}%||!jo|!|||%p|<q|djo8x5|!D])}|ddjo|!|||<qqWqqWqqWWntj
onX|	i|S(s%Do the hard work for readmodule[_ex].s%s.%st.iit__path__Ritdeftclasst(t)t,titimporttfromt*t_N(R#R$( t_modulestsystbuiltin_module_namestrfindRRtimptfind_moduleRt
PKG_DIRECTORYt	PY_SOURCEtclosettokenizetgenerate_tokenstreadlineRtnextRRRRRtappendtTruetjointsplittlenRt_getnamelisttImportErrort_getnamet
StopIteration(&R	Rt	inpackaget
fullmoduleRtitpackaget	submoduletparenttfRtsufftmodettypetstacktgt	tokentypettokentstarttendtlineRt
thisindentt	meth_namet	cur_classt
class_nametinherittnamestlevelRtntctmtdtmodulestmodtmod2tn2((s"/usr/local/lib/python2.5/pyclbr.pyRgs



(+

+



















	 


*
c	Csg}xtot|\}}|pPn|djot|\}}nd}|i||fx:|djo,d|jo|i\}}}}}qmW|djoPq	q	W|S(NtasR$s
(R8R>RR7R6(	RKRVR
RMtname2RLRNRORP((s"/usr/local/lib/python2.5/pyclbr.pyR<s 
 

cCsg}|i\}}}}}|tjo|djod|fSn|i|xstok|i\}}}}}|djoPn|i\}}}}}|tjoPn|i|qYWdi||fS(NR(R(R6RRR7R8R9(RKtpartsRLRMRNRORP((s"/usr/local/lib/python2.5/pyclbr.pyR>'s


c	Cslddk}tid}|ii|oO|ii|g}|ii|}|iido|d }qng}t	||}|i
}|idx|D]}t|t
otdG|iG|iG|iGHt|iidtd}x]|D]*\}}|djod	G|G|GHqqWqt|tod
G|iG|iGHqqWdS(Niis.pyicSs%tt|ddt|ddS(Ri(tcmptgetattr(tatb((s"/usr/local/lib/python2.5/pyclbr.pyt<lambda>GsR!RRs  defR (tosR+targvRtexiststdirnametbasenametlowertendswithRtvaluestsortRRR
RRtsortedR
t	iteritemsRR(	RhR]RRtobjstobjR
R
R((s"/usr/local/lib/python2.5/pyclbr.pyt_main:s,
!
t__main__(((RR+R.R3RMRRRRtoperatorRt__all__R*RRRRRRR<R>RuR(((s"/usr/local/lib/python2.5/pyclbr.pys<module>(s""
			


Man Man