Improve subprocess link error notification
M NEWS.txt M PyShell.py M rpc.py
This commit is contained in:
parent
77d08bcfc2
commit
935ea9a0b2
|
@ -3,6 +3,8 @@ What's New in IDLE 1.2a0?
|
||||||
|
|
||||||
*Release date: XX-XXX-2005*
|
*Release date: XX-XXX-2005*
|
||||||
|
|
||||||
|
- Improve subprocess link error notification.
|
||||||
|
|
||||||
- run.py: use Queue's blocking feature instead of sleeping in the main
|
- run.py: use Queue's blocking feature instead of sleeping in the main
|
||||||
loop. Patch # 1190163 Michiel de Hoon
|
loop. Patch # 1190163 Michiel de Hoon
|
||||||
|
|
||||||
|
|
|
@ -596,6 +596,8 @@ class ModifiedInterpreter(InteractiveInterpreter):
|
||||||
self.write("Unsupported characters in input")
|
self.write("Unsupported characters in input")
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
|
# InteractiveInterpreter.runsource() calls its runcode() method,
|
||||||
|
# which is overridden (see below)
|
||||||
return InteractiveInterpreter.runsource(self, source, filename)
|
return InteractiveInterpreter.runsource(self, source, filename)
|
||||||
finally:
|
finally:
|
||||||
if self.save_warnings_filters is not None:
|
if self.save_warnings_filters is not None:
|
||||||
|
@ -720,6 +722,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
|
||||||
else:
|
else:
|
||||||
self.showtraceback()
|
self.showtraceback()
|
||||||
except:
|
except:
|
||||||
|
print>>sys.stderr, "IDLE internal error in runcode()"
|
||||||
self.showtraceback()
|
self.showtraceback()
|
||||||
finally:
|
finally:
|
||||||
if not use_subprocess:
|
if not use_subprocess:
|
||||||
|
|
|
@ -330,9 +330,10 @@ class SocketIO(object):
|
||||||
try:
|
try:
|
||||||
r, w, x = select.select([], [self.sock], [])
|
r, w, x = select.select([], [self.sock], [])
|
||||||
n = self.sock.send(s[:BUFSIZE])
|
n = self.sock.send(s[:BUFSIZE])
|
||||||
except (AttributeError, socket.error):
|
except (AttributeError, TypeError):
|
||||||
# socket was closed
|
raise IOError, "socket no longer exists"
|
||||||
raise IOError
|
except socket.error:
|
||||||
|
raise
|
||||||
else:
|
else:
|
||||||
s = s[n:]
|
s = s[n:]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue