libtbx.python_code_parsing
index
/net/chevy/raid1/nat/src/cctbx_project/libtbx/python_code_parsing.py

 
Modules
       
ast
sys

 
Classes
       
__builtin__.object
imported_name
old_style_class
ast.NodeVisitor(__builtin__.object)
find_old_style_classes
unused_imports

 
class find_old_style_classes(ast.NodeVisitor)
    Finds old-style classes (i.e. ones that don't inherit from object)
 
 
Method resolution order:
find_old_style_classes
ast.NodeVisitor
__builtin__.object

Methods defined here:
__init__(self, python_source_code=None, python_source_filename=None)
__iter__(self)
__nonzero__(self)
__repr__(self)
visit_ClassDef(self, node)

Class methods defined here:
is_subpath_of(cls, a, b) from __builtin__.type
Whether a is a subpath of b

Data descriptors defined here:
names

Methods inherited from ast.NodeVisitor:
generic_visit(self, node)
Called if no explicit visitor function exists for a node.
visit(self, node)
Visit a node.

Data descriptors inherited from ast.NodeVisitor:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class imported_name(__builtin__.object)
     Methods defined here:
__eq__(self, other)
__hash__(self)
__init__(self, name, lineno)
__repr__(self)
name_as_str(self)

Data descriptors defined here:
lineno
name

 
class old_style_class(__builtin__.object)
     Methods defined here:
__eq__(self, other)
__hash__(self)
__init__(self, name, lineno)
__repr__(self)
name_as_str(self)

Data descriptors defined here:
lineno
name

 
class unused_imports(ast.NodeVisitor)
    Unused import's in a module.
This finds more of them than the algorithm in
libtbx.find_unused_imports_crude
Work in progress: careful checking of the outcome mandatory
 
 
Method resolution order:
unused_imports
ast.NodeVisitor
__builtin__.object

Methods defined here:
__init__(self, python_source_code=None, python_source_filename=None, ignored_imports=(), ignored_imports_from=(), ignore_imports_flagged_by_comments=())
__iter__(self)
__nonzero__(self)
__repr__(self)
consolidate_imports_info(self)
visit_Attribute(self, attr)
visit_FunctionDef(self, func)
visit_Import(self, imp)
visit_ImportFrom(self, imp)
visit_Name(self, name)

Class methods defined here:
is_subpath_of(cls, a, b) from __builtin__.type
Whether a is a subpath of b

Data descriptors defined here:
names

Methods inherited from ast.NodeVisitor:
generic_visit(self, node)
Called if no explicit visitor function exists for a node.
visit(self, node)
Visit a node.

Data descriptors inherited from ast.NodeVisitor:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)