Message ID | 20200409150840.v2.12.I9d8a5afe3f0d9fccfb1f768d754f98b58c365e33@changeid |
---|---|
State | Accepted |
Commit | a84eb1617997d71bdec1f4152536bd8ecba82e87 |
Headers | show |
Series | buildman: Improve summary output | expand |
This does not seem to work on Python 3. Update the code to use the
built-in support.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v2: None
tools/patman/terminal.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
Applied to u-boot-dm, thanks!
diff --git a/tools/patman/terminal.py b/tools/patman/terminal.py index 7a3b658b00e..6541fa8f410 100644 --- a/tools/patman/terminal.py +++ b/tools/patman/terminal.py @@ -53,11 +53,10 @@ def Print(text='', newline=True, colour=None): if colour: col = Color() text = col.Color(colour, text) - print(text, end='') if newline: - print() + print(text) else: - sys.stdout.flush() + print(text, end='', flush=True) def SetPrintTestMode(): """Go into test mode, where all printing is recorded"""
This does not seem to work on Python 3. Update the code to use the built-in support. Signed-off-by: Simon Glass <sjg at chromium.org> --- Changes in v2: None tools/patman/terminal.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)