Skip to content
Snippets Groups Projects
Commit 3781e9f7 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

hghave: fix possible int('') in has_clang_format()

parent f91f0dfc
No related branches found
No related tags found
No related merge requests found
...@@ -591,7 +591,7 @@ ...@@ -591,7 +591,7 @@
@check("clang-format", "clang-format C code formatter") @check("clang-format", "clang-format C code formatter")
def has_clang_format(): def has_clang_format():
m = matchoutput('clang-format --version', br'clang-format version (\d*)') m = matchoutput('clang-format --version', br'clang-format version (\d+)')
# style changed somewhere between 4.x and 6.x # style changed somewhere between 4.x and 6.x
return m and int(m.group(1)) >= 6 return m and int(m.group(1)) >= 6
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment