summaryrefslogtreecommitdiff
path: root/tools/patman
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-07-20 12:23:26 -0600
committerSimon Glass <sjg@chromium.org>2019-07-29 09:38:05 -0600
commit7b773167c083752eabf88bd37d55976244a48f6c (patch)
tree7045bdb60272dabe619c4b54784ef3100c81f453 /tools/patman
parent935461262e322fce6fcfc48caf2b9a6ec05caaae (diff)
downloadu-boot-7b773167c083752eabf88bd37d55976244a48f6c.tar.gz
binman: Use print() to print output
At present tout writes directly to stdout. This is not necessary and it prevents tests from redirecting output. Change it to use print() for the non-progress output. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman')
-rw-r--r--tools/patman/tout.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/patman/tout.py b/tools/patman/tout.py
index 15acce28cb..ae04c30f1d 100644
--- a/tools/patman/tout.py
+++ b/tools/patman/tout.py
@@ -4,6 +4,8 @@
# Terminal output logging.
#
+from __future__ import print_function
+
import sys
import terminal
@@ -87,7 +89,7 @@ def _Output(level, msg, color=None):
ClearProgress()
if color:
msg = _color.Color(color, msg)
- _stdout.write(msg + '\n')
+ print(msg)
def DoOutput(level, msg):
"""Output a message to the terminal.