From: Kurt B. Kaiser Date: Wed, 9 Aug 2006 17:47:15 +0000 (+0000) Subject: As a slight enhancement to the previous checkin, improve the X-Git-Tag: v2.5c1~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be332e4ba7cffe4da7933ea21df1bbb50835666a;p=thirdparty%2FPython%2Fcpython.git As a slight enhancement to the previous checkin, improve the internal error reporting by moving message to IDLE console. --- diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index f0d79263a82b..c0bd5d0d6b95 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -722,9 +722,12 @@ class ModifiedInterpreter(InteractiveInterpreter): else: self.showtraceback() except: - if self.rpcclt: - print>>sys.stderr, "IDLE internal error in runcode()" + if use_subprocess: + print >> self.tkconsole.stderr, \ + "IDLE internal error in runcode()" self.showtraceback() + if use_subprocess: + self.tkconsole.endexecuting() finally: if not use_subprocess: self.tkconsole.endexecuting()