Mercurial > hg
changeset 45184:3781e9f74b27 stable
hghave: fix possible int('') in has_clang_format()
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 21 Jul 2020 20:49:05 +0900 |
parents | f91f0dfccf9b |
children | a17454a189d1 |
files | tests/hghave.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/hghave.py Mon Jul 20 22:16:26 2020 +0530 +++ b/tests/hghave.py Tue Jul 21 20:49:05 2020 +0900 @@ -591,7 +591,7 @@ @check("clang-format", "clang-format C code formatter") 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 return m and int(m.group(1)) >= 6