From: Kurt B. Kaiser Date: Tue, 24 Dec 2002 03:33:12 +0000 (+0000) Subject: IDLE should exit if it fails to connect with the execution server X-Git-Tag: v2.3c1~2898 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a2a3cb23defa5e17a159982adac33e3dd58d8a93;p=thirdparty%2FPython%2Fcpython.git IDLE should exit if it fails to connect with the execution server subprocess. Currently it opens a dead shell window. --- diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index d89802c5e60b..e3605ac86812 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -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)