]> granicus.if.org Git - python/commitdiff
IDLE should exit if it fails to connect with the execution server
authorKurt B. Kaiser <kbk@shore.net>
Tue, 24 Dec 2002 03:33:12 +0000 (03:33 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Tue, 24 Dec 2002 03:33:12 +0000 (03:33 +0000)
subprocess.  Currently it opens a dead shell window.

Lib/idlelib/PyShell.py

index d89802c5e60b0a1ff01e98443af05d276d489daf..e3605ac86812826bda20d4282dd3bc59af6fe9a5 100644 (file)
@@ -340,7 +340,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
                                                     + ", 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)