summaryrefslogtreecommitdiffstats
path: root/Lib/cmd.py
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2011-12-06 19:46:57 (GMT)
committerJesus Cea <jcea@jcea.es>2011-12-06 19:46:57 (GMT)
commita9837d819458b379512771a1e02f7ea02244e813 (patch)
treee56a906bd788609051b09bfa9f88f5218db1adde /Lib/cmd.py
parented1ac587df34dc30ddd49549d3286befb059dd31 (diff)
downloadcpython-a9837d819458b379512771a1e02f7ea02244e813.zip
cpython-a9837d819458b379512771a1e02f7ea02244e813.tar.gz
cpython-a9837d819458b379512771a1e02f7ea02244e813.tar.bz2
Close #13500: Hitting EOF gets cmd.py into a infinite EOF on return loop
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 8fa7d01..859e910 100644
--- a/Lib/cmd.py
+++ b/Lib/cmd.py
@@ -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: