From 55f87578a103e8da4b7c4211338bccc702bdba6e Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Sat, 5 Nov 2011 22:36:44 -0700 Subject: Issue #13300: Fix IDLE Restart Shell command failure introduced by 3a5a0943b201. Do not close listening socket on subprocess restart. --- Lib/idlelib/PyShell.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Lib/idlelib/PyShell.py') 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 @@ -459,6 +459,10 @@ class ModifiedInterpreter(InteractiveInterpreter): threading.Thread(target=self.__request_interrupt).start() def kill_subprocess(self): + try: + self.rpcclt.listening_sock.close() + except AttributeError: # no socket + pass try: self.rpcclt.close() except AttributeError: # no socket -- cgit v1.2.1