Issue27573 code.interact prints a message when exiting.

This commit is contained in:
Steven D'Aprano 2016-08-15 04:14:33 +10:00
parent a0d3eeff86
commit dd51d16b48
3 changed files with 14 additions and 2 deletions

View file

@ -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.