mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
bpo-45296: Fix exit/quit message on Windows (GH-28577) (GH-28601)
IDLE recognizes Ctrl-D, as on other systems, instead of Ctrl-Z.
(cherry picked from commit e649e0658f
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
94d19f606f
commit
813fbba4ca
3 changed files with 16 additions and 0 deletions
|
@ -39,6 +39,13 @@ if not hasattr(sys.modules['idlelib.run'], 'firstrun'):
|
|||
|
||||
LOCALHOST = '127.0.0.1'
|
||||
|
||||
try:
|
||||
eof = 'Ctrl-D (end-of-file)'
|
||||
exit.eof = eof
|
||||
quit.eof = eof
|
||||
except NameError: # In case subprocess started with -S (maybe in future).
|
||||
pass
|
||||
|
||||
|
||||
def idle_formatwarning(message, category, filename, lineno, line=None):
|
||||
"""Format warnings the IDLE way."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue