Flush stdout before reading next command. Closes SF bug 526357.

This commit is contained in:
Neil Schemenauer 2002-03-23 20:43:59 +00:00
parent 3a204a7e48
commit d03c342b99
1 changed files with 1 additions and 0 deletions

View File

@ -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'