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 <s...@chromium.org>
---

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

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
-- 
2.43.0

Reply via email to