(self, obj)
| 561 | do_l = do_list |
| 562 | |
| 563 | def getsourcelines(self, obj): |
| 564 | lines, lineno = inspect.findsource(obj) |
| 565 | if inspect.isframe(obj) and obj.f_globals is obj.f_locals: |
| 566 | # must be a module frame: do not try to cut a block out of it |
| 567 | return lines, 1 |
| 568 | elif inspect.ismodule(obj): |
| 569 | return lines, 1 |
| 570 | return inspect.getblock(lines[lineno:]), lineno+1 |
| 571 | |
| 572 | def do_longlist(self, arg): |
| 573 | """Print lines of code from the current stack frame. |
no outgoing calls
no test coverage detected