hghave: fix clang-format check to use bytes regex
authorAugie Fackler <augie@google.com>
Wed, 18 Oct 2017 18:29:17 -0400
changeset 34892 e1458bce84db
parent 34891 6b77c13a1aab
child 34893 068e0e531584
hghave: fix clang-format check to use bytes regex Fixes hghave on Python 3. Differential Revision: https://phab.mercurial-scm.org/D1182
tests/hghave.py
--- a/tests/hghave.py	Wed Oct 18 18:29:00 2017 -0400
+++ b/tests/hghave.py	Wed Oct 18 18:29:17 2017 -0400
@@ -442,7 +442,7 @@
 @check("clang-format", "clang-format C code formatter")
 def has_clang_format():
     return matchoutput("clang-format --help",
-                       r"^OVERVIEW: A tool to format C/C\+\+[^ ]+ code.")
+                       br"^OVERVIEW: A tool to format C/C\+\+[^ ]+ code.")
 
 @check("pygments", "Pygments source highlighting library")
 def has_pygments():