summaryrefslogtreecommitdiff
path: root/tools/buildman/builder.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2025-02-21 08:24:49 -0600
committerTom Rini <trini@konsulko.com>2025-02-21 11:36:37 -0600
commit8c6cf8aeea7e57ca686de8b765e4baf3a7ef1fa7 (patch)
treed298981af4a3bfde1bf5f88a03be0c833be29662 /tools/buildman/builder.py
parent13654f5426d3f9ebc7d1211528c86dd18b91f473 (diff)
parentb902386072f78dab4d94b34abfb03b8fb54af852 (diff)
Merge branch 'fix-issues-and-update-pylint-version' into next
This merges a set of patches from myself and Simon Glass to resolve various problems that the current version of pylint will report with our codebase. After the problems are fixed, we update to the now current version which is 3.3.4.
Diffstat (limited to 'tools/buildman/builder.py')
-rw-r--r--tools/buildman/builder.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py
index 2568e4e8423..23b1016d0f9 100644
--- a/tools/buildman/builder.py
+++ b/tools/buildman/builder.py
@@ -1095,14 +1095,13 @@ class Builder:
diff = result[name]
if name.startswith('_'):
continue
- if diff != 0:
- color = self.col.RED if diff > 0 else self.col.GREEN
+ colour = self.col.RED if diff > 0 else self.col.GREEN
msg = ' %s %+d' % (name, diff)
if not printed_target:
tprint('%10s %-15s:' % ('', result['_target']),
newline=False)
printed_target = True
- tprint(msg, colour=color, newline=False)
+ tprint(msg, colour=colour, newline=False)
if printed_target:
tprint()
if show_bloat:
@@ -1353,6 +1352,7 @@ class Builder:
for line in lines:
if not line:
continue
+ col = None
if line[0] == '+':
col = self.col.GREEN
elif line[0] == '-':