changeset 45943:a9797b49fb69

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
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 27 Nov 2020 17:11:56 -0500
parents 89a2afe31e82
children 595979dc924e
files tests/hghave.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/hghave.py	Fri Nov 27 17:03:29 2020 -0500
+++ b/tests/hghave.py	Fri Nov 27 17:11:56 2020 -0500
@@ -586,7 +586,7 @@
 
 @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")