From: Simon Glass <simon.glass@canonical.com>
Rename 'type' to 'sym_type' in _get_func_sizes_for_elf() and 'str' to
'text' in add_target_list() to avoid shadowing Python built-in names.
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---
tools/buildman/builder.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
@@ -736,8 +736,8 @@ class Builder:
line = line.strip()
parts = line.split()
if line and len(parts) == 3:
- size, type, name = line.split()
- if type in NM_SYMBOL_TYPES:
+ size, sym_type, name = line.split()
+ if sym_type in NM_SYMBOL_TYPES:
# function names begin with '.' on 64-bit powerpc
if '.' in name[1:]:
name = 'static.' + name.split('.')[0]
@@ -1003,14 +1003,14 @@ class Builder:
arch = board_dict[target].arch
else:
arch = 'unknown'
- str = self.col.build(color, ' ' + target)
+ text = self.col.build(color, ' ' + target)
if not arch in done_arch:
- str = ' %s %s' % (self.col.build(color, char), str)
+ text = ' %s %s' % (self.col.build(color, char), text)
done_arch[arch] = True
if not arch in arch_list:
- arch_list[arch] = str
+ arch_list[arch] = text
else:
- arch_list[arch] += str
+ arch_list[arch] += text
def colour_num(self, num):