[Python-checkins] r51181 - python/trunk/Lib/idlelib python/trunk/Lib/idlelib/PyShell.py

kurt.kaiser python-checkins at python.org
Wed Aug 9 19:47:15 CEST 2006


Author: kurt.kaiser
Date: Wed Aug 9 19:47:15 2006
New Revision: 51181
Modified:
 python/trunk/Lib/idlelib/ (props changed)
 python/trunk/Lib/idlelib/PyShell.py
Log:
As a slight enhancement to the previous checkin, improve the
internal error reporting by moving message to IDLE console.
Modified: python/trunk/Lib/idlelib/PyShell.py
==============================================================================
--- python/trunk/Lib/idlelib/PyShell.py	(original)
+++ python/trunk/Lib/idlelib/PyShell.py	Wed Aug 9 19:47:15 2006
@@ -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()


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /