# HG changeset patch # User Augie Fackler # Date 1520113097 18000 # Node ID dc11f257ad1de266dd852e457a39c2b0de39dd1c # Parent e1c6c1f9855d9299fc9a01b2ae3ebee5b9080075 hghave: fix up clang-libfuzzer regex to be bytes Fixes this check on Python 3. # skip-blame just a b prefix Differential Revision: https://phab.mercurial-scm.org/D2607 diff -r e1c6c1f9855d -r dc11f257ad1d tests/hghave.py --- a/tests/hghave.py Sat Mar 03 15:41:12 2018 -0500 +++ b/tests/hghave.py Sat Mar 03 16:38:17 2018 -0500 @@ -703,7 +703,7 @@ @check("clang-libfuzzer", "clang new enough to include libfuzzer") def has_clang_libfuzzer(): - mat = matchoutput('clang --version', 'clang version (\d)') + mat = matchoutput('clang --version', b'clang version (\d)') if mat: # libfuzzer is new in clang 6 return int(mat.group(1)) > 5