Pylint: remove leftovers from the logging patch.
This commit is contained in:
parent
ce89396808
commit
83d0d7fef4
@ -86,26 +86,6 @@ function! SyntaxCheckers_python_pylint_GetLocList() dict
|
|||||||
return loclist
|
return loclist
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:PylintNew(exe)
|
|
||||||
let exe = syntastic#util#shescape(a:exe)
|
|
||||||
try
|
|
||||||
" On Windows the version is shown as "pylint-script.py 1.0.0".
|
|
||||||
" On Gentoo Linux it's "pylint-python2.7 0.28.0".
|
|
||||||
" On NixOS, that would be ".pylint-wrapped 0.26.0".
|
|
||||||
" On Arch Linux it's "pylint2 1.1.0".
|
|
||||||
" On new-ish Fedora it's "python3-pylint 1.2.0".
|
|
||||||
" Have you guys considered switching to creative writing yet? ;)
|
|
||||||
let pylint_version = filter( split(system(exe . ' --version'), '\m, \=\|\n'),
|
|
||||||
\ 'v:val =~# ''\m^\(python[-0-9]*-\|\.\)\=pylint[-0-9]*\>''' )[0]
|
|
||||||
let pylint_version = substitute(pylint_version, '\v^\S+\s+', '', '')
|
|
||||||
let ret = syntastic#util#versionIsAtLeast(syntastic#util#parseVersion(pylint_version), [1])
|
|
||||||
catch /\m^Vim\%((\a\+)\)\=:E684/
|
|
||||||
call syntastic#log#error("checker python/pylint: can't parse version string (abnormal termination?)")
|
|
||||||
let ret = -1
|
|
||||||
endtry
|
|
||||||
return ret
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
\ 'filetype': 'python',
|
\ 'filetype': 'python',
|
||||||
\ 'name': 'pylint' })
|
\ 'name': 'pylint' })
|
||||||
|
Loading…
Reference in New Issue
Block a user