]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport nascheme's checkin of
authorMichael W. Hudson <mwh@python.net>
Mon, 25 Mar 2002 12:34:15 +0000 (12:34 +0000)
committerMichael W. Hudson <mwh@python.net>
Mon, 25 Mar 2002 12:34:15 +0000 (12:34 +0000)
    revision 1.27 of cmd.py

Flush stdout before reading next command.  Closes SF bug 526357.

Lib/cmd.py

index 2a7be430833506ca792ab39cc1fdfc1d540077c4..5f955a7c10b1c5e5664e7145d8b002d90ee0d681 100644 (file)
@@ -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'