From 83d0d7fef420f5484f31e9c33437afb937105f1c Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Mon, 6 Oct 2014 22:23:10 +0300 Subject: [PATCH] Pylint: remove leftovers from the logging patch. --- syntax_checkers/python/pylint.vim | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/syntax_checkers/python/pylint.vim b/syntax_checkers/python/pylint.vim index 503348fe..8e803a38 100644 --- a/syntax_checkers/python/pylint.vim +++ b/syntax_checkers/python/pylint.vim @@ -86,26 +86,6 @@ function! SyntaxCheckers_python_pylint_GetLocList() dict return loclist 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({ \ 'filetype': 'python', \ 'name': 'pylint' })