diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-03-23 20:43:59 +0000 |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-03-23 20:43:59 +0000 |
commit | 0f4a7e7353a9733f81805661f06b5d1b601321e2 (patch) | |
tree | 23323b17d43c8c9718666ce5e0094a4dd0638202 /Lib/cmd.py | |
parent | 2649fe9de0863f7af50e2e92c773468db7665cd2 (diff) | |
download | cpython-0f4a7e7353a9733f81805661f06b5d1b601321e2.tar.gz |
Flush stdout before reading next command. Closes SF bug 526357.
Diffstat (limited to 'Lib/cmd.py')
-rw-r--r-- | Lib/cmd.py | 1 |
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' |