summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/cmd.py
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-08-29 23:57:22 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-08-29 23:57:22 (GMT)
commit69374e483630ad6df9d14b8baa15ac18d20c428e (patch)
treed78974ba73909b1cdf6509cd91ed784be626e92f /Lib/distutils/cmd.py
parentc806c8858dcefeccab5b77a85c07627be8e7be28 (diff)
downloadcpython-69374e483630ad6df9d14b8baa15ac18d20c428e.zip
cpython-69374e483630ad6df9d14b8baa15ac18d20c428e.tar.gz
cpython-69374e483630ad6df9d14b8baa15ac18d20c428e.tar.bz2
Flush output more aggressively. This makes things look better if
the setup script is running from inside Vim.
Diffstat (limited to 'Lib/distutils/cmd.py')
-rw-r--r--Lib/distutils/cmd.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/distutils/cmd.py b/Lib/distutils/cmd.py
index ce44829..85a7f46 100644
--- a/Lib/distutils/cmd.py
+++ b/Lib/distutils/cmd.py
@@ -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()