Pylint checker again: calling syntastic#util#parseVersion() is wrong.

This commit is contained in:
LCD 47 2013-09-23 23:29:10 +03:00
parent 8965bd141b
commit c0f349a4b2

View File

@ -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