Skip to content

Commit 69374e4

Browse files
committed
Flush output more aggressively. This makes things look better if
the setup script is running from inside Vim.
1 parent c806c88 commit 69374e4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/distutils/cmd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def announce (self, msg, level=1):
188188
"""
189189
if self.verbose >= level:
190190
print msg
191+
sys.stdout.flush()
191192

192193
def debug_print (self, msg):
193194
"""Print 'msg' to stdout if the global DEBUG (taken from the
@@ -196,6 +197,7 @@ def debug_print (self, msg):
196197
from distutils.core import DEBUG
197198
if DEBUG:
198199
print msg
200+
sys.stdout.flush()
199201

200202

201203

0 commit comments

Comments
 (0)