changeset: 83259:d3c67e2fc68c branch: 3.3 parent: 83252:bc514cc5d65b user: Roger Serwy date: Thu Apr 11 19:16:44 2013 -0500 files: Lib/idlelib/PyShell.py Lib/site.py Misc/NEWS description: #17585: Fixed IDLE regression. Now closes when using exit() or quit(). diff -r bc514cc5d65b -r d3c67e2fc68c Lib/idlelib/PyShell.py --- a/Lib/idlelib/PyShell.py Thu Apr 11 21:01:40 2013 +0200 +++ b/Lib/idlelib/PyShell.py Thu Apr 11 19:16:44 2013 -0500 @@ -1365,6 +1365,9 @@ self._line_buffer = line[size:] return line[:size] + def close(self): + self.shell.close() + usage_msg = """\ diff -r bc514cc5d65b -r d3c67e2fc68c Lib/site.py --- a/Lib/site.py Thu Apr 11 21:01:40 2013 +0200 +++ b/Lib/site.py Thu Apr 11 19:16:44 2013 -0500 @@ -369,12 +369,7 @@ # Shells like IDLE catch the SystemExit, but listen when their # stdin wrapper is closed. try: - fd = -1 - if hasattr(sys.stdin, "fileno"): - fd = sys.stdin.fileno() - if fd != 0: - # Don't close stdin if it wraps fd 0 - sys.stdin.close() + sys.stdin.close() except: pass raise SystemExit(code) diff -r bc514cc5d65b -r d3c67e2fc68c Misc/NEWS --- a/Misc/NEWS Thu Apr 11 21:01:40 2013 +0200 +++ b/Misc/NEWS Thu Apr 11 19:16:44 2013 -0500 @@ -46,6 +46,8 @@ 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.