Skip to content

Commit d03c342

Browse files
committed
Flush stdout before reading next command. Closes SF bug 526357.
1 parent 3a204a7 commit d03c342

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/cmd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def cmdloop(self, intro=None):
9494
line = 'EOF'
9595
else:
9696
sys.stdout.write(self.prompt)
97+
sys.stdout.flush()
9798
line = sys.stdin.readline()
9899
if not len(line):
99100
line = 'EOF'

0 commit comments

Comments
 (0)