From 1deeef243de5a0a816d09a1e04d0ff8ef7e95341 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Mon, 25 Mar 2002 12:34:15 +0000 Subject: backport nascheme's checkin of revision 1.27 of cmd.py 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