diff Lib/idlelib/PyShell.py @ 73399:ce483d696c06

Issue #13300: Fix IDLE Restart Shell command failure introduced by 3a5a0943b201. Do not close listening socket on subprocess restart.
author Ned Deily <nad@acm.org>
date Sat, 05 Nov 2011 22:36:44 -0700
parents 9fbf79d6be56
children ba832d42cd9e
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py	Sun Nov 06 03:04:12 2011 +0100
+++ b/Lib/idlelib/PyShell.py	Sat Nov 05 22:36:44 2011 -0700
@@ -460,6 +460,10 @@
 
     def kill_subprocess(self):
         try:
+            self.rpcclt.listening_sock.close()
+        except AttributeError:  # no socket
+            pass
+        try:
             self.rpcclt.close()
         except AttributeError:  # no socket
             pass