mirror of
https://github.com/python/cpython.git
synced 2025-11-26 21:33:10 +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:
|
if self.verbose >= level:
|
||||||
print msg
|
print msg
|
||||||
|
sys.stdout.flush()
|
||||||
|
|
||||||
def debug_print (self, msg):
|
def debug_print (self, msg):
|
||||||
"""Print 'msg' to stdout if the global DEBUG (taken from the
|
"""Print 'msg' to stdout if the global DEBUG (taken from the
|
||||||
|
|
@ -196,6 +197,7 @@ class Command:
|
||||||
from distutils.core import DEBUG
|
from distutils.core import DEBUG
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
print msg
|
print msg
|
||||||
|
sys.stdout.flush()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue