# HG changeset patch # User Anton Shestakov # Date 1670852550 -14400 # Node ID 38ae503b369bb710cbee84a58d07b5086799d224 # Parent f463eb675e859fc022ca18b8ea3d34045174553f hghave: detect newer pylint Older versions (e.g. 2.7.2) say: "Usage: pylint [options]" Newer versions (e.g. 2.15.5) say: "usage: pylint [options]" diff -r f463eb675e85 -r 38ae503b369b tests/hghave.py --- a/tests/hghave.py Sat Nov 12 00:18:41 2022 +0100 +++ b/tests/hghave.py Mon Dec 12 17:42:30 2022 +0400 @@ -612,7 +612,7 @@ @check("pylint", "Pylint python linter") def has_pylint(): - return matchoutput("pylint --help", br"Usage:[ ]+pylint", True) + return matchoutput("pylint --help", br"[Uu]sage:[ ]+pylint", True) @check("clang-format", "clang-format C code formatter (>= 11)")