From: Michael W. Hudson Date: Mon, 25 Mar 2002 12:34:15 +0000 (+0000) Subject: backport nascheme's checkin of X-Git-Tag: v2.2.1c2~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1deeef243de5a0a816d09a1e04d0ff8ef7e95341;p=thirdparty%2FPython%2Fcpython.git backport nascheme's checkin of revision 1.27 of cmd.py 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'