mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52: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
1 changed files with 1 additions and 0 deletions
|
@ -173,6 +173,7 @@ def printc(message, color="", title=False, title_char='', end="\n"):
|
||||||
if not sys.stdout.isatty():
|
if not sys.stdout.isatty():
|
||||||
end = "\n"
|
end = "\n"
|
||||||
|
|
||||||
|
message = str(message)
|
||||||
message += ' ' * max(0, last_carriage_return_len - len(message))
|
message += ' ' * max(0, last_carriage_return_len - len(message))
|
||||||
last_carriage_return_len = len(message) if end == "\r" else 0
|
last_carriage_return_len = len(message) if end == "\r" else 0
|
||||||
sys.stdout.write(color + str(message) + Colors.ENDC + end)
|
sys.stdout.write(color + str(message) + Colors.ENDC + end)
|
||||||
|
|
Loading…
Reference in a new issue