summaryrefslogtreecommitdiff
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2011-11-05 22:36:44 -0700
committerNed Deily <nad@acm.org>2011-11-05 22:36:44 -0700
commit55f87578a103e8da4b7c4211338bccc702bdba6e (patch)
tree4ee774f63016e6a4eedbc9933530dd8327407315 /Lib/idlelib/PyShell.py
parentdeb925fc14fb12f9ef2a0773eb80ad81db7ec3ac (diff)
downloadcpython-git-55f87578a103e8da4b7c4211338bccc702bdba6e.tar.gz
Issue #13300: Fix IDLE Restart Shell command failure introduced by
3a5a0943b201. Do not close listening socket on subprocess restart.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r--Lib/idlelib/PyShell.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 33deb457a4..ea3a5d9a8e 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -460,6 +460,10 @@ class ModifiedInterpreter(InteractiveInterpreter):
def kill_subprocess(self):
try:
+ self.rpcclt.listening_sock.close()
+ except AttributeError: # no socket
+ pass
+ try:
self.rpcclt.close()
except AttributeError: # no socket
pass