diff options
author | Roger Serwy <roger.serwy@gmail.com> | 2013-04-12 00:13:21 (GMT) |
---|---|---|
committer | Roger Serwy <roger.serwy@gmail.com> | 2013-04-12 00:13:21 (GMT) |
commit | 53dc4f0148f08d0da5c394089b7061cd77269fc0 (patch) | |
tree | 495c24934ad6383ac40c1dea4a219fff8f2b48f3 /Lib/idlelib | |
parent | 77d8dbc1e8b1b00797f408b5e601a0eacb77dff3 (diff) | |
download | cpython-53dc4f0148f08d0da5c394089b7061cd77269fc0.zip cpython-53dc4f0148f08d0da5c394089b7061cd77269fc0.tar.gz cpython-53dc4f0148f08d0da5c394089b7061cd77269fc0.tar.bz2 |
#17585: Fixed IDLE regression. Now closes when using exit() or quit().
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/PyShell.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 9451d2e..81af85a 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 = """\ |