From: Simon Glass Date: Wed, 7 May 2025 16:08:52 +0000 (+0200) Subject: patman: Correct use of str in code X-Git-Tag: v2025.10-rc1~118^2~69^2~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8896247b5833b1d357774d069c557cbb4a453a48;p=thirdparty%2Fu-boot.git patman: Correct use of str in code 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 --- diff --git a/tools/patman/send.py b/tools/patman/send.py index 7989fe32f92..009ea6bab5f 100644 --- a/tools/patman/send.py +++ b/tools/patman/send.py @@ -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