buildman: Fix some newer pylint warnings
PATCH 1/1 buildman: Fix some newer pylint warnings
With a newer pylint we get a warning about "color" or "col" being used before assigned. This is most easily handled by setting them to None to indicate no specific color is needed, only the default.
Signed-off-by Tom Rini <[email protected]>
---
Cc: Simon Glass <[email protected]>
--- tools/buildman/builder.py | 3 +++ 1 file changed, 3 insertions(+)
tools/buildman/builder.py +3 -0
@@ -1093,6 +1093,7 @@ class Builder: printed_target = False for name in sorted(result): diff = result[name] + color = None if name.startswith('_'): continue if diff != 0:
@@ -1359,6 +1360,8 @@ class Builder: col = self.col.RED elif line[0] == 'c': col = self.col.YELLOW + else: + col = None tprint(' ' + line, newline=True, colour=col) def _output_err_lines(err_lines, colour):
Signature · 1 line
2.43.0