Skip to content

Commit 952097d

Browse files
shenxianpeng2bndy5
andauthored
Fix #37 change version_tuple to string (#38)
* Fix #37 change version_tuple to string * Update clang_tools/install.py Co-authored-by: Brendan <[email protected]> Co-authored-by: Brendan <[email protected]>
1 parent ce41d4f commit 952097d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang_tools/install.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def is_installed(tool_name: str, version: str) -> Optional[Path]:
3232
ver_major = version_tuple[0]
3333
if len(version_tuple) < 3:
3434
# append minor and patch version numbers if not specified
35-
version_tuple += (0,) * (3 - len(version_tuple))
35+
version_tuple += ("0",) * (3 - len(version_tuple))
3636
exe_name = (
3737
f"{tool_name}" + (f"-{ver_major}" if install_os != "windows" else "") + suffix
3838
)

0 commit comments

Comments
 (0)