summaryrefslogtreecommitdiff
path: root/Lib/cmd.py
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-23 20:43:59 +0000
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-23 20:43:59 +0000
commit0f4a7e7353a9733f81805661f06b5d1b601321e2 (patch)
tree23323b17d43c8c9718666ce5e0094a4dd0638202 /Lib/cmd.py
parent2649fe9de0863f7af50e2e92c773468db7665cd2 (diff)
downloadcpython-0f4a7e7353a9733f81805661f06b5d1b601321e2.tar.gz
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 2a7be43083..5f955a7c10 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'