mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Flush output more aggressively. This makes things look better if
the setup script is running from inside Vim.
This commit is contained in:
parent
c806c8858d
commit
69374e4836
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue