mirror of
https://github.com/python/cpython.git
synced 2025-08-26 11:45:20 +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'
|
line = 'EOF'
|
||||||
else:
|
else:
|
||||||
sys.stdout.write(self.prompt)
|
sys.stdout.write(self.prompt)
|
||||||
|
sys.stdout.flush()
|
||||||
line = sys.stdin.readline()
|
line = sys.stdin.readline()
|
||||||
if not len(line):
|
if not len(line):
|
||||||
line = 'EOF'
|
line = 'EOF'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue