hghave: fix up clang-libfuzzer regex to be bytes
authorAugie Fackler <augie@google.com>
Sat, 03 Mar 2018 16:38:17 -0500
changeset 36659 dc11f257ad1d
parent 36658 e1c6c1f9855d
child 36660 11b279a75bf1
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
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