Return Class objects for the top-level classes in module. This is the original interface, before Functions were added.
(module, path=None)
| 98 | |
| 99 | |
| 100 | def readmodule(module, path=None): |
| 101 | """Return Class objects for the top-level classes in module. |
| 102 | |
| 103 | This is the original interface, before Functions were added. |
| 104 | """ |
| 105 | |
| 106 | res = {} |
| 107 | for key, value in _readmodule(module, path or []).items(): |
| 108 | if isinstance(value, Class): |
| 109 | res[key] = value |
| 110 | return res |
| 111 | |
| 112 | def readmodule_ex(module, path=None): |
| 113 | """Return a dictionary with all functions and classes in module. |
nothing calls this directly
no test coverage detected
searching dependent graphs…