[Python-checkins] cpython (3.2): Close #13500: Hitting EOF gets cmd.py into a infinite EOF on return loop
jesus.cea
python-checkins at python.org
Tue Dec 6 20:47:53 CET 2011
http://hg.python.org/cpython/rev/b6b4d74b8d42
changeset: 73873:b6b4d74b8d42
branch: 3.2
parent: 73868:80876df8adce
user: Jesus Cea <jcea at jcea.es>
date: Tue Dec 06 20:46:57 2011 +0100
summary:
Close #13500: Hitting EOF gets cmd.py into a infinite EOF on return loop
files:
Lib/cmd.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Lib/cmd.py b/Lib/cmd.py
--- a/Lib/cmd.py
+++ b/Lib/cmd.py
@@ -205,6 +205,8 @@
if cmd is None:
return self.default(line)
self.lastcmd = line
+ if line == 'EOF' :
+ self.lastcmd = ''
if cmd == '':
return self.default(line)
else:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list