hghave: fix clang-format check to use bytes regex
Fixes hghave on Python 3.
Differential Revision: https://phab.mercurial-scm.org/D1182
--- 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():