Get source code for a method, including bound methods.
(method)
| 226 | |
| 227 | |
| 228 | def get_method_source(method): |
| 229 | """Get source code for a method, including bound methods.""" |
| 230 | if isinstance(method, types.MethodType): |
| 231 | method = method.__func__ |
| 232 | return get_source(method) |
| 233 | |
| 234 | |
| 235 | def is_same_method(method1, method2): |
no test coverage detected