diff Lib/idlelib/PyShell.py @ 39419:feee6582011f legacy-trunk

As a slight enhancement to the previous checkin, improve the internal error reporting by moving message to IDLE console.
author Kurt B. Kaiser <kbk@shore.net>
date Wed, 09 Aug 2006 17:47:15 +0000
parents 7d6b2e04e439
children d8fa810cfd54
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py	Wed Aug 09 16:46:15 2006 +0000
+++ b/Lib/idlelib/PyShell.py	Wed Aug 09 17:47:15 2006 +0000
@@ -722,9 +722,12 @@
                 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()