diff options
Diffstat (limited to 'tools/patman')
-rw-r--r-- | tools/patman/terminal.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/patman/terminal.py b/tools/patman/terminal.py index 7a3b658b00..6541fa8f41 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""" |