Skip to content
Snippets Groups Projects
Commit 67e8c4f1 authored by Tulio Magno Quites Machado Filho's avatar Tulio Magno Quites Machado Filho
Browse files

Fix unsupported operands in .custom-format.py

Python 3.11 complains that int and str are unsupported operand types for
operator +.
parent 5d9c1bc3
Branches
Tags
No related merge requests found
...@@ -40,7 +40,7 @@ def check_clang_format_pip_version(): ...@@ -40,7 +40,7 @@ def check_clang_format_pip_version():
if importlib.util.find_spec('clang_format'): if importlib.util.find_spec('clang_format'):
# Check if the installed version is the expected LLVM version # Check if the installed version is the expected LLVM version
if importlib.metadata.version('clang-format')\ if importlib.metadata.version('clang-format')\
.startswith(CURRENT_LLVM+'.'): .startswith(str(CURRENT_LLVM)+'.'):
return True return True
else: else:
# Return False, because the clang-format version does not match # Return False, because the clang-format version does not match
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment