]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
There was an error in the Tk error dialog fix at Rev 1.81.4.3 which caused starting
authorKurt B. Kaiser <kbk@shore.net>
Wed, 22 Sep 2004 04:52:33 +0000 (04:52 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Wed, 22 Sep 2004 04:52:33 +0000 (04:52 +0000)
w/o the subprocess to fail.  This is the same error in the 2.4 version which was
corrected at Rev 1.85, but missed in the backport!  Thanks to Hans Gubitz for noticing this.

M PyShell.py

Lib/idlelib/PyShell.py

index d70ca5bc6acd8660af0f9c124855e244d4aaaf27..2e0009f625bf09dd7faf154d9837b75cbfa1003c 100644 (file)
@@ -926,7 +926,7 @@ class PyShell(OutputWindow):
             client = self.interp.start_subprocess()
             if not client:
                 self.close()
-                return None
+                return False
         else:
             nosub = "==== No Subprocess ===="
         self.write("Python %s on %s\n%s\n%s\nIDLE %s      %s\n" %
@@ -935,7 +935,7 @@ class PyShell(OutputWindow):
         self.showprompt()
         import Tkinter
         Tkinter._default_root = None # 03Jan04 KBK What's this?
-        return client
+        return True
 
     def readline(self):
         save = self.reading