mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
Issue27573 code.interact prints a message when exiting.
This commit is contained in:
parent
a0d3eeff86
commit
dd51d16b48
3 changed files with 14 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue