mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
MERGE: Close #13500: Hitting EOF gets cmd.py into a infinite EOF on return loop
This commit is contained in:
commit
0f6492250c
1 changed files with 2 additions and 0 deletions
|
@ -205,6 +205,8 @@ class Cmd:
|
|||
if cmd is None:
|
||||
return self.default(line)
|
||||
self.lastcmd = line
|
||||
if line == 'EOF' :
|
||||
self.lastcmd = ''
|
||||
if cmd == '':
|
||||
return self.default(line)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue