b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/pyclbr.pyo
Size9.5 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:28
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc @sïdZddkZddkZddkZddklZlZlZddkl Z ddddgZ
hZ ddd ��YZ ddd
��YZ
dd �Zdd �Zdd
�Zd�Zd�Zd�Zedjo e�ndS(sçParse 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
iÿÿÿÿN(tNAMEtDEDENTtOP(t
itemgettert
readmodulet
readmodule_extClasstFunctioncBs eZdZd�Zd�ZRS(s"Class to represent a Python class.cCsQ||_||_|djo
g}n||_h|_||_||_dS(N(tmoduletnametNonetsupertmethodstfiletlineno(tselfRR R R
R((s/usr/lib64/python2.6/pyclbr.pyt__init__7s  

   cCs||i|<dS(N(R (RR R((s/usr/lib64/python2.6/pyclbr.pyt
_addmethodAs(t__name__t
__module__t__doc__RR(((s/usr/lib64/python2.6/pyclbr.pyR5s
cBseZdZd�ZRS(s.Class to represent a top-level Python functioncCs(||_||_||_||_dS(N(RR R
R(RRR R
R((s/usr/lib64/python2.6/pyclbr.pyRFs   (RRRR(((s/usr/lib64/python2.6/pyclbr.pyRDscCsUh}xHt||pg�i�D]*\}}t|t�o|||<q#q#W|S(s}Backwards compatible interface.

Call readmodule_ex() and then only keep Class objects from the
resulting dictionary.(t _readmoduletitemst
isinstanceR(Rtpathtrestkeytvalue((s/usr/lib64/python2.6/pyclbr.pyRLs  cCst||pg�S(sÕRead 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.
(R(RR((s/usr/lib64/python2.6/pyclbr.pyRXsc&Cs�|dj od||f}n|}|tjo t|Sh}|tijo|djo|t|<|S|id�}|djo`|| }||d}t|||�}|dj od||f}nt||d|�Sd} |dj o(ti||�\} }
\} } }
n,ti||ti�\} }
\} } }
|
ti joE|
g|d<|
g|}tid|
g�\} }
\} } }
n|t|<|
ti
jo| i �|Sg}t i
| i�}y�x|D]w\}}}}}|tjo;|\}}xF|o |dd|jo |d=q"Wqñ|djoÔ|\}}x(|o |dd|jo |d=qjW|i�dd !\}}}|tjoqñn|o6|dd}t|t�o|i||�qnt|||
|�||<|id|f�qñ|d
jo�|\}}x(|o |dd|jo |d=qKW|i�dd !\}}}|tjoqñn|i�dd !\}}}d}|d jo©g}d}g}x�to�|i�dd !\}}}|djo¾|djo±di|�}||jo||}nq|id�}t|�djoN|d} |d}| tjo)t| }!||!jo|!|}qºq¾n|i|�g}n|d jo|d7}qç|d jo |d8}|djoPqlqç|d
jo|djoqç|ttfjo|djo|i|�qçqçW|}nt||||
|�}|p|||<n|i||f�qñ|djo�|ddjo�t|�}"x||"D]o\}#}$yY|djot|#|�n8yt|#||�Wn tj
ot|#g�nXWqðqðXqðWqñ|djoô|ddjoãt|�\}#}|# p
|djoqñnt|�}yt|#||�}!Wn
qñnXx�|D]w\}}%||!jo|!|||%p|<qé|djo8x5|!D])}|ddjo|!|||<q/q/WqéqéWqñqñWWntj
onX| i �|S(s.Do the hard work for readmodule[_ex].

If INPACKAGE is given, 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.
s%s.%st.iit__path__Riÿÿÿÿtdefitclasst(t)t,tiþÿÿÿtimporttfromt*t_N(R!R"( R
t_modulestsystbuiltin_module_namestrfindRtimpt find_moduleRt
PKG_DIRECTORYt PY_SOURCEtclosettokenizetgenerate_tokenstreadlineRtnextRRRRRtappendtTruetjointsplittlenRt _getnamelistt ImportErrort_getnamet
StopIteration(&RRt inpackaget
fullmoduletdicttitpackaget submoduletparenttftfnamet_st_mttytstacktgt tokentypettokentstartt_endt_lineRt
thisindentt meth_namet cur_classt
class_nametinherittnamestlevelR tntctmtdtmodulestmodt_mod2tn2((s/usr/lib64/python2.6/pyclbr.pyRas

 




(+

+


 
  
 
  













  
    
   

*
cCs·g}xªto¢t|�\}}|pPn|djot|�\}}nd}|i||f�x/|djo!d|jo|i�d}qmW|djoPq q W|S(NtasR"s
i(R6R<R
R5R4(RKRVR RMtname2((s/usr/lib64/python2.6/pyclbr.pyR:s 


cCsÖg}|i�dd!\}}|tjo|djo d|fS|i|�xotog|i�dd!\}}|djoPn|i�dd!\}}|tjoPn|i|�qTWdi|�|fS(NiiR&R(R4RR
R5R6R7(RKtpartsRLRM((s/usr/lib64/python2.6/pyclbr.pyR<)s 


c Cslddk}tid}|ii|�oO|ii|�g}|ii|�}|i�id�o|d }q�ng}t ||�}|i
�}|i d��x¹|D]±}t |t
�otdG|iG|iG|iGHt|ii�dtd��}x]|D]*\}}|djod G|G|GHq q Wq³t |t�od
G|iG|iGHq³q³WdS( Niÿÿÿÿis.pyiýÿÿÿcSs%tt|dd�t|dd��S(Ri(tcmptgetattr(tatb((s/usr/lib64/python2.6/pyclbr.pyt<lambda>IsRRRs defR(tosR)targvRtexiststdirnametbasenametlowertendswithRtvaluestsortRRR R RtsortedR t iteritemsRR( RhR]RR@tobjstobjR R R((s/usr/lib64/python2.6/pyclbr.pyt_main<s, 
 ! 
t__main__(((RR)R,R1RMRRRtoperatorRt__all__R(RRR
RRRR:R<RuR(((s/usr/lib64/python2.6/pyclbr.pyt<module>(s"    ´