Safer version check for pylint.

This commit is contained in:
LCD 47 2013-09-23 23:14:46 +03:00
parent 3eb51f1e26
commit 8965bd141b

View File

@ -51,7 +51,7 @@ endfunction
function s:PylintNew()
try
let pylint_version = filter(split(system('pylint --version'), '\m, \|\n'), 'v:val =~# "^pylint"')[0]
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])
catch /E684/
call syntastic#util#error("checker python/pylint: can't parse version string (abnormal termination?)")