mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-08 17:19:25 +00:00
validate:launcher: printc is accepting object as arguments
Make sure in all code paths those are converted to strings
This commit is contained in:
parent
1533775381
commit
25e3b90225
|
@ -173,6 +173,7 @@ def printc(message, color="", title=False, title_char='', end="\n"):
|
|||
if not sys.stdout.isatty():
|
||||
end = "\n"
|
||||
|
||||
message = str(message)
|
||||
message += ' ' * max(0, last_carriage_return_len - len(message))
|
||||
last_carriage_return_len = len(message) if end == "\r" else 0
|
||||
sys.stdout.write(color + str(message) + Colors.ENDC + end)
|
||||
|
|
Loading…
Reference in a new issue