]> granicus.if.org Git - python/commitdiff
Flush stdout before reading next command. Closes SF bug 526357.
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Sat, 23 Mar 2002 20:43:59 +0000 (20:43 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Sat, 23 Mar 2002 20:43:59 +0000 (20:43 +0000)
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'