From c0f349a4b28a588d7f9acfbd973c75484ee75ae2 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Mon, 23 Sep 2013 23:29:10 +0300 Subject: [PATCH] Pylint checker again: calling syntastic#util#parseVersion() is wrong. --- syntax_checkers/python/pylint.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/python/pylint.vim b/syntax_checkers/python/pylint.vim index 70196bd8..f3eb56b1 100644 --- a/syntax_checkers/python/pylint.vim +++ b/syntax_checkers/python/pylint.vim @@ -52,7 +52,7 @@ endfunction function s:PylintNew() try let pylint_version = filter(split(system('pylint --version'), '\m, \=\|\n'), 'v:val =~# "^pylint "')[0] - let ret = syntastic#util#versionIsAtLeast(syntastic#util#parseVersion(pylint_version), [1]) + let ret = syntastic#util#versionIsAtLeast(split(matchstr( pylint_version, '\v^\D*\zs\d+(\.\d+)+\ze' ), '\.'), [1]) catch /E684/ call syntastic#util#error("checker python/pylint: can't parse version string (abnormal termination?)") let ret = -1