]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
As a slight enhancement to the previous checkin, improve the
authorKurt B. Kaiser <kbk@shore.net>
Wed, 9 Aug 2006 17:47:15 +0000 (17:47 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Wed, 9 Aug 2006 17:47:15 +0000 (17:47 +0000)
internal error reporting by moving message to IDLE console.

Lib/idlelib/PyShell.py

index f0d79263a82bc0cadacaacd680c93e68bd81376d..c0bd5d0d6b95dccd8c0c20e609027ef34af03a65 100644 (file)
@@ -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()