(cl)
| 230 | |
| 231 | |
| 232 | def allmethods(cl): |
| 233 | methods = {} |
| 234 | for key, value in inspect.getmembers(cl, inspect.isroutine): |
| 235 | methods[key] = 1 |
| 236 | for base in cl.__bases__: |
| 237 | methods.update(allmethods(base)) # all your base are belong to us |
| 238 | for key in methods.keys(): |
| 239 | methods[key] = getattr(cl, key) |
| 240 | return methods |
| 241 | |
| 242 | def _split_list(s, predicate): |
| 243 | """Split sequence s via predicate, and return pair ([true], [false]). |
nothing calls this directly
no test coverage detected
searching dependent graphs…