]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#17585: Fixed IDLE regression. Now closes when using exit() or quit().
authorRoger Serwy <roger.serwy@gmail.com>
Fri, 12 Apr 2013 00:13:21 +0000 (19:13 -0500)
committerRoger Serwy <roger.serwy@gmail.com>
Fri, 12 Apr 2013 00:13:21 +0000 (19:13 -0500)
Lib/idlelib/PyShell.py
Misc/NEWS

index 9451d2e6c929f6977f0bb302a1dd7d2d62c6b5ee..81af85a84044e4f53ed3df3e69c1a2f3c54a9015 100644 (file)
@@ -1370,6 +1370,9 @@ class PseudoInputFile(PseudoFile):
         self._line_buffer = line[size:]
         return line[:size]
 
+    def close(self):
+        self.shell.close()
+
 
 usage_msg = """\
 
index 76718bedd92082f4fa80125820319045f3b09dc5..a04210c21b5a21c9a9b3b4a6ed382b5ca4d8f8bf 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -37,6 +37,8 @@ Library
 IDLE
 ----
 
+- Issue #17585: Fixed IDLE regression. Now closes when using exit() or quit().
+
 - Issue #17657: Show full Tk version in IDLE's about dialog.
   Patch by Todd Rovito.