mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Improve subprocess link error notification
M NEWS.txt M PyShell.py M rpc.py
This commit is contained in:
parent
77d08bcfc2
commit
935ea9a0b2
3 changed files with 9 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue