[PATCH v2 11/24] buildman: Fix use of a type as a variable

Simon Glass sjg at chromium.org
Fri Feb 24 02:18:11 CET 2023


Using 'str' as a variable makes it impossible to use it as a type in the
same function. Fix this by using a different name.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v2:
- Add patch to fix use of a type as a variable

 tools/buildman/control.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/buildman/control.py b/tools/buildman/control.py
index 76e4e2709ac..fe3b6fa335d 100644
--- a/tools/buildman/control.py
+++ b/tools/buildman/control.py
@@ -261,9 +261,9 @@ def DoBuildman(options, args, toolchains=None, make_func=None, brds=None,
             count += 1   # Build upstream commit also
 
     if not count:
-        str = ("No commits found to process in branch '%s': "
+        msg = ("No commits found to process in branch '%s': "
                "set branch's upstream or use -c flag" % options.branch)
-        sys.exit(col.build(col.RED, str))
+        sys.exit(col.build(col.RED, msg))
     if options.work_in_output:
         if len(selected) != 1:
             sys.exit(col.build(col.RED,
-- 
2.39.2.637.g21b0678d19-goog



More information about the U-Boot mailing list