]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
patman: Correct use of str in code
authorSimon Glass <sjg@chromium.org>
Wed, 7 May 2025 16:08:52 +0000 (18:08 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 27 May 2025 09:07:42 +0000 (10:07 +0100)
Since str() is a reserved function we should not use it as a variable.
Fix this in the send module.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/send.py

index 7989fe32f9240bafee56cdb1ac2100e310389c7b..009ea6bab5f1fe94a6e7ead1b6f137aa4c332a58 100644 (file)
@@ -144,9 +144,9 @@ def prepare_patches(col, branch, count, start, end, ignore_binary, signoff,
                  start)
 
     if not count:
-        str = 'No commits found to process - please use -c flag, or run:\n' \
+        msg = 'No commits found to process - please use -c flag, or run:\n' \
               '  git branch --set-upstream-to remote/branch'
-        sys.exit(col.build(col.RED, str))
+        sys.exit(col.build(col.RED, msg))
 
     # Read the metadata from the commits
     to_do = count - end