Namespace to hold arbitrary information.
| 27 | |
| 28 | |
| 29 | class Obj(object): |
| 30 | '''Namespace to hold arbitrary information.''' |
| 31 | def __init__(self, **kwargs): |
| 32 | for k, v in kwargs.items(): |
| 33 | setattr(self, k, v) |
| 34 | |
| 35 | class FuncClsScanner(ast.NodeVisitor): |
| 36 | """Scan a module for top-level functions and classes. |
no outgoing calls
no test coverage detected