mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
Remove unnecessary "," from Pylint version regex
Summary: See PHI1238. This "," in the regex can only make the lint binding fail if there is no "," in the version output string. In modern versions of Pylint, there is (apparently) no comma in the version string. Remove it. See also <https://discourse.phabricator-community.org/t/arcanistpylintlinter-version-regex-issue/2688> Test Plan: ``` $ pip install pylint Traceback (most recent call last): File "/Users/epriestley/Library/Python/2.7/bin/pip", line 6, in <module> from pip._internal import main ImportError: No module named pip._internal ``` ¯\_(ツ)_/¯ Reviewers: amckinley, joshuaspence Reviewed By: joshuaspence Differential Revision: https://secure.phabricator.com/D20505
This commit is contained in:
parent
9830c9316d
commit
b61e890a0c
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ final class ArcanistPyLintLinter extends ArcanistExternalLinter {
|
|||
list($stdout) = execx('%C --version', $this->getExecutableCommand());
|
||||
|
||||
$matches = array();
|
||||
$regex = '/^pylint (?P<version>\d+\.\d+\.\d+),/';
|
||||
$regex = '/^pylint (?P<version>\d+\.\d+\.\d+)/';
|
||||
if (preg_match($regex, $stdout, $matches)) {
|
||||
return $matches['version'];
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue