Flush stdout before reading next command. Closes SF bug 526357.
This commit is contained in:
parent
3a204a7e48
commit
d03c342b99
|
@ -94,6 +94,7 @@ class Cmd:
|
|||
line = 'EOF'
|
||||
else:
|
||||
sys.stdout.write(self.prompt)
|
||||
sys.stdout.flush()
|
||||
line = sys.stdin.readline()
|
||||
if not len(line):
|
||||
line = 'EOF'
|
||||
|
|
Loading…
Reference in New Issue