From d03c342b9930f14302ee10c0f99468b37d7a7f91 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Sat, 23 Mar 2002 20:43:59 +0000 Subject: Flush stdout before reading next command. Closes SF bug 526357. --- Lib/cmd.py | 1 + 1 file changed, 1 insertion(+) 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' -- cgit v0.12