Close #13500: Hitting EOF gets cmd.py into a infinite EOF on return loop

This commit is contained in:
Jesus Cea 2011-12-06 20:46:57 +01:00
parent ed1ac587df
commit a9837d8194
1 changed files with 2 additions and 0 deletions

View File

@ -205,6 +205,8 @@ class Cmd:
if cmd is None: if cmd is None:
return self.default(line) return self.default(line)
self.lastcmd = line self.lastcmd = line
if line == 'EOF' :
self.lastcmd = ''
if cmd == '': if cmd == '':
return self.default(line) return self.default(line)
else: else: