summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2005-05-10 03:44:24 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2005-05-10 03:44:24 (GMT)
commit935ea9a0b291b2ce42a5cf02d9f2f2955e21a6aa (patch)
tree850442afa3fdd45244e48afd7b3d67ce12fe7d75 /Lib/idlelib/PyShell.py
parent77d08bcfc212ed8faa2649f8f80f70beda50bd0a (diff)
downloadcpython-935ea9a0b291b2ce42a5cf02d9f2f2955e21a6aa.zip
cpython-935ea9a0b291b2ce42a5cf02d9f2f2955e21a6aa.tar.gz
cpython-935ea9a0b291b2ce42a5cf02d9f2f2955e21a6aa.tar.bz2
Improve subprocess link error notification
M NEWS.txt M PyShell.py M rpc.py
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r--Lib/idlelib/PyShell.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index fecbf1a..fa348be 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -596,6 +596,8 @@ class ModifiedInterpreter(InteractiveInterpreter):
self.write("Unsupported characters in input")
return
try:
+ # InteractiveInterpreter.runsource() calls its runcode() method,
+ # which is overridden (see below)
return InteractiveInterpreter.runsource(self, source, filename)
finally:
if self.save_warnings_filters is not None:
@@ -720,6 +722,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
else:
self.showtraceback()
except:
+ print>>sys.stderr, "IDLE internal error in runcode()"
self.showtraceback()
finally:
if not use_subprocess: