Safer version check for pylint.
This commit is contained in:
parent
3eb51f1e26
commit
8965bd141b
@ -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?)")
|
||||
|
Loading…
x
Reference in New Issue
Block a user