summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorRoger Serwy <roger.serwy@gmail.com>2013-04-12 00:13:21 (GMT)
committerRoger Serwy <roger.serwy@gmail.com>2013-04-12 00:13:21 (GMT)
commit53dc4f0148f08d0da5c394089b7061cd77269fc0 (patch)
tree495c24934ad6383ac40c1dea4a219fff8f2b48f3 /Lib/idlelib
parent77d8dbc1e8b1b00797f408b5e601a0eacb77dff3 (diff)
downloadcpython-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.py3
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 = """\