mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Flush stdout before reading next command. Closes SF bug 526357.
This commit is contained in:
parent
3a204a7e48
commit
d03c342b99
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue