(obj, methods)
| 579 | "__methods__", (), {}) |
| 580 | |
| 581 | def _getmethods(obj, methods): |
| 582 | # Helper to get a list of methods from an object |
| 583 | # Adds names to dictionary argument 'methods' |
| 584 | for name in dir(obj): |
| 585 | attr = getattr(obj, name) |
| 586 | if callable(attr): |
| 587 | methods[name] = 1 |
| 588 | if isinstance(obj, type): |
| 589 | for super in obj.__bases__: |
| 590 | _getmethods(super, methods) |
| 591 | |
| 592 | def _getattributes(obj, attributes): |
| 593 | for name in dir(obj): |
no outgoing calls
no test coverage detected
searching dependent graphs…