(self, obj)
| 952 | do_l = do_list |
| 953 | |
| 954 | def getsourcelines(self, obj): |
| 955 | lines, lineno = inspect.findsource(obj) |
| 956 | if inspect.isframe(obj) and obj.f_globals is self._get_frame_locals(obj): |
| 957 | # must be a module frame: do not try to cut a block out of it |
| 958 | return lines, 1 |
| 959 | elif inspect.ismodule(obj): |
| 960 | return lines, 1 |
| 961 | return inspect.getblock(lines[lineno:]), lineno + 1 |
| 962 | |
| 963 | def do_longlist(self, arg): |
| 964 | """Print lines of code from the current stack frame. |
no test coverage detected