diff Lib/idlelib/PyShell.py @ 26772:240fdbef8c60 legacy-trunk

IDLE should exit if it fails to connect with the execution server subprocess. Currently it opens a dead shell window.
author Kurt B. Kaiser <kbk@shore.net>
date Tue, 24 Dec 2002 03:33:12 +0000
parents fc7fdec3fb86
children 89dd74f7ae32
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py	Tue Dec 24 00:57:22 2002 +0000
+++ b/Lib/idlelib/PyShell.py	Tue Dec 24 03:33:12 2002 +0000
@@ -340,7 +340,7 @@
                                                     + ", retrying..."
         else:
             display_port_binding_error()
-            return
+            sys.exit()
         # Accept the connection from the Python execution server
         self.rpcclt.accept()
         self.rpcclt.register("stdin", self.tkconsole)