diff options
author | Ned Deily <nad@acm.org> | 2011-11-05 22:36:44 -0700 |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2011-11-05 22:36:44 -0700 |
commit | 55f87578a103e8da4b7c4211338bccc702bdba6e (patch) | |
tree | 4ee774f63016e6a4eedbc9933530dd8327407315 /Lib/idlelib/PyShell.py | |
parent | deb925fc14fb12f9ef2a0773eb80ad81db7ec3ac (diff) | |
download | cpython-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.py | 4 |
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 |