summaryrefslogtreecommitdiffstats
path: root/Lib/code.py
diff options
context:
space:
mode:
authorSteven D'Aprano <steve@pearwood.info>2016-08-14 18:14:33 (GMT)
committerSteven D'Aprano <steve@pearwood.info>2016-08-14 18:14:33 (GMT)
commitdd51d16b485f013c8f6489fede4faf1686c59e5e (patch)
tree749311f562bb7f6f1cfce6c177152bd8c55f17f8 /Lib/code.py
parenta0d3eeff864a5b03ee2d05232b3ec14bd86a0970 (diff)
downloadcpython-dd51d16b485f013c8f6489fede4faf1686c59e5e.zip
cpython-dd51d16b485f013c8f6489fede4faf1686c59e5e.tar.gz
cpython-dd51d16b485f013c8f6489fede4faf1686c59e5e.tar.bz2
Issue27573 code.interact prints a message when exiting.
Diffstat (limited to 'Lib/code.py')
-rw-r--r--Lib/code.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/code.py b/Lib/code.py
index 53244e3..c8b7204 100644
--- a/Lib/code.py
+++ b/Lib/code.py
@@ -230,6 +230,7 @@ class InteractiveConsole(InteractiveInterpreter):
self.write("\nKeyboardInterrupt\n")
self.resetbuffer()
more = 0
+ self.write('now exiting %s...\n' % self.__class__.__name__)
def push(self, line):
"""Push a line to the interpreter.