Remove keys other than ' '.
(self)
| 741 | self.tkconsole.open_stack_viewer() |
| 742 | |
| 743 | def checklinecache(self): |
| 744 | "Remove keys other than '<pyshell#n>'." |
| 745 | cache = linecache.cache |
| 746 | for key in list(cache): # Iterate list because mutate cache. |
| 747 | if key[:1] + key[-1:] != "<>": |
| 748 | del cache[key] |
| 749 | |
| 750 | def runcommand(self, code): |
| 751 | "Run the code without invoking the debugger" |
no test coverage detected