From 5afa1dfb72311b8360904363cc3ebb7cbfc8b6e4 Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Thu, 10 Oct 2002 08:25:24 +0000 Subject: M CallTips.py Add support for getting calltip from subprocess, refactor a bit and clean up. M PyShell.py Cosmetic changes, delete blank lines, add # on some blank lines. M rpc.py Add more debugging capability M run.py Add support for getting calltip from subprocess Move import statements --- Lib/idlelib/PyShell.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'Lib/idlelib/PyShell.py') diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 195942fd25..790609a366 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -414,7 +414,6 @@ class ModifiedInterpreter(InteractiveInterpreter): if self.tkconsole.executing: display_executing_dialog() return - # self.checklinecache() if self.save_warnings_filters is not None: warnings.filters[:] = self.save_warnings_filters @@ -425,7 +424,6 @@ class ModifiedInterpreter(InteractiveInterpreter): self.active_seq = self.rpcclt.asynccall("exec", "runcode", (code,), {}) return - # try: self.tkconsole.beginexecuting() try: @@ -444,7 +442,6 @@ class ModifiedInterpreter(InteractiveInterpreter): self.showtraceback() except: self.showtraceback() - # finally: self.tkconsole.endexecuting() @@ -480,14 +477,14 @@ class PyShell(OutputWindow): fixwordbreaks(root) root.withdraw() flist = PyShellFileList(root) - + # OutputWindow.__init__(self, flist, None, None) - + # import __builtin__ __builtin__.quit = __builtin__.exit = "To exit, type Ctrl-D." - + # self.config(usetabs=1, indentwidth=8, context_use_ps1=1) - + # text = self.text text.configure(wrap="char") text.bind("<>", self.enter_callback) @@ -499,7 +496,7 @@ class PyShell(OutputWindow): text.bind("<>", self.toggle_debugger) text.bind("<>", self.flist.open_shell) text.bind("<>", self.toggle_jit_stack_viewer) - + # self.save_stdout = sys.stdout self.save_stderr = sys.stderr self.save_stdin = sys.stdin @@ -510,9 +507,9 @@ class PyShell(OutputWindow): sys.stdout = self.stdout sys.stderr = self.stderr sys.stdin = self - + # self.history = self.History(self.text) - + # if use_subprocess: self.interp.start_subprocess() -- cgit v1.2.1