[Python-checkins] cpython (merge 3.2 -> default): MERGE: 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/70ba352f9586
changeset: 73874:70ba352f9586
parent: 73871:56b7b1ecc240
parent: 73873:b6b4d74b8d42
user: Jesus Cea <jcea at jcea.es>
date: Tue Dec 06 20:47:38 2011 +0100
summary:
MERGE: 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