From: Neil Schemenauer Date: Sat, 23 Mar 2002 20:43:59 +0000 (+0000) Subject: Flush stdout before reading next command. Closes SF bug 526357. X-Git-Tag: v2.3c1~6376 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d03c342b9930f14302ee10c0f99468b37d7a7f91;p=thirdparty%2FPython%2Fcpython.git Flush stdout before reading next command. Closes SF bug 526357. --- diff --git a/Lib/cmd.py b/Lib/cmd.py index 2a7be4308335..5f955a7c10b1 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'