]> granicus.if.org Git - python/commitdiff
Flush output more aggressively. This makes things look better if
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Wed, 29 Aug 2001 23:57:22 +0000 (23:57 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Wed, 29 Aug 2001 23:57:22 +0000 (23:57 +0000)
the setup script is running from inside Vim.

Lib/distutils/cmd.py

index ce44829498b99a6ae1fafdb5c1655813df83377b..85a7f4618272f8d09c23a98719158b4b7bab59e7 100644 (file)
@@ -188,6 +188,7 @@ class Command:
         """
         if self.verbose >= level:
             print msg
+            sys.stdout.flush()
 
     def debug_print (self, msg):
         """Print 'msg' to stdout if the global DEBUG (taken from the
@@ -196,6 +197,7 @@ class Command:
         from distutils.core import DEBUG
         if DEBUG:
             print msg
+            sys.stdout.flush()