projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ef0ceb
)
patman: Update flushing Print() for Python 3
author
Simon Glass
<sjg@chromium.org>
Thu, 9 Apr 2020 21:08:39 +0000
(15:08 -0600)
committer
Simon Glass
<sjg@chromium.org>
Tue, 21 Apr 2020 12:33:47 +0000
(06:33 -0600)
This does not seem to work on Python 3. Update the code to use the
built-in support.
Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/terminal.py
patch
|
blob
|
history
diff --git
a/tools/patman/terminal.py
b/tools/patman/terminal.py
index
7a3b658
..
6541fa8
100644
(file)
--- 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"""