# HG changeset patch # User Matt Harbison # Date 2020-11-27 22:11:56 # Node ID a9797b49fb69edb344343e132ea9e5715b4c2081 # Parent 89a2afe31e82710e13600271c75e3ce23bc1b5a9 hghave: adjust the detection of `pylint` for modern versions I have pylint 2.6.0 installed locally, and it only has a single space. I have no idea when this changed. Differential Revision: https://phab.mercurial-scm.org/D9431 diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -586,7 +586,7 @@ def has_pyflakes(): @check("pylint", "Pylint python linter") def has_pylint(): - return matchoutput("pylint --help", br"Usage: pylint", True) + return matchoutput("pylint --help", br"Usage:[ ]+pylint", True) @check("clang-format", "clang-format C code formatter")