summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2006-08-09 17:47:15 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2006-08-09 17:47:15 (GMT)
commitbe332e4ba7cffe4da7933ea21df1bbb50835666a (patch)
treecfa1d7bdc4e7f18541f0669567f88b926088a314 /Lib
parent312e5afb5121ac9863bda7e348e5c4f1d75c5dd6 (diff)
downloadcpython-be332e4ba7cffe4da7933ea21df1bbb50835666a.zip
cpython-be332e4ba7cffe4da7933ea21df1bbb50835666a.tar.gz
cpython-be332e4ba7cffe4da7933ea21df1bbb50835666a.tar.bz2
As a slight enhancement to the previous checkin, improve the
internal error reporting by moving message to IDLE console.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/PyShell.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index f0d7926..c0bd5d0 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()