summaryrefslogtreecommitdiffstats
path: root/Lib/cmd.py
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-23 20:43:59 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-23 20:43:59 (GMT)
commitd03c342b9930f14302ee10c0f99468b37d7a7f91 (patch)
tree2c273b90edacea811041ecdfa68cbee51ae9f51b /Lib/cmd.py
parent3a204a7e481883d277f7c093fabf9632746571d7 (diff)
downloadcpython-d03c342b9930f14302ee10c0f99468b37d7a7f91.zip
cpython-d03c342b9930f14302ee10c0f99468b37d7a7f91.tar.gz
cpython-d03c342b9930f14302ee10c0f99468b37d7a7f91.tar.bz2
Flush stdout before reading next command. Closes SF bug 526357.
Diffstat (limited to 'Lib/cmd.py')
-rw-r--r--Lib/cmd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/cmd.py b/Lib/cmd.py
index 2a7be43..5f955a7 100644
--- a/Lib/cmd.py
+++ b/Lib/cmd.py
@@ -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'