From: Roger Serwy Date: Fri, 12 Apr 2013 00:13:21 +0000 (-0500) Subject: #17585: Fixed IDLE regression. Now closes when using exit() or quit(). X-Git-Tag: v2.7.5~86 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53dc4f0148f08d0da5c394089b7061cd77269fc0;p=thirdparty%2FPython%2Fcpython.git #17585: Fixed IDLE regression. Now closes when using exit() or quit(). --- diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 9451d2e6c929..81af85a84044 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -1370,6 +1370,9 @@ class PseudoInputFile(PseudoFile): self._line_buffer = line[size:] return line[:size] + def close(self): + self.shell.close() + usage_msg = """\ diff --git a/Misc/NEWS b/Misc/NEWS index 76718bedd920..a04210c21b5a 100644 --- 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.