changeset 36659:dc11f257ad1d

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
author Augie Fackler <augie@google.com>
date Sat, 03 Mar 2018 16:38:17 -0500
parents e1c6c1f9855d
children 11b279a75bf1
files tests/hghave.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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