summaryrefslogtreecommitdiff
path: root/Lib/cmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/cmd.py')
-rw-r--r--Lib/cmd.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/cmd.py b/Lib/cmd.py
index 29ea4608e7..ae7f12ef18 100644
--- a/Lib/cmd.py
+++ b/Lib/cmd.py
@@ -209,6 +209,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: