# HG changeset patch # User Augie Fackler # Date 2017-10-18 22:29:17 # Node ID e1458bce84dbf74db98eccd87b41efe13180f057 # Parent 6b77c13a1aab7eeb26924b94289a861b67350b36 hghave: fix clang-format check to use bytes regex Fixes hghave on Python 3. Differential Revision: https://phab.mercurial-scm.org/D1182 diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -442,7 +442,7 @@ def has_pylint(): @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():