Merge pull request #956 from bukzor/pylint-fix-colorized

Prevent pylint drom doing stupid things when pythonrc specifies format=colorized.

With format=colorized, {C} in --msg-template is longer than 1 character, and thus can't match %t in errorformat.
This commit is contained in:
LCD 047 2014-01-23 22:36:44 -08:00
commit c3bd2bda16

View File

@ -23,7 +23,7 @@ endfunction
function! SyntaxCheckers_python_pylint_GetLocList() dict
let makeprg = self.makeprgBuild({
\ 'args': (s:pylint_new ? '--msg-template="{path}:{line}:{column}:{C}: [{symbol}] {msg}" -r n' : '-f parseable -r n -i y') })
\ 'args': (s:pylint_new ? '-f text --msg-template="{path}:{line}:{column}:{C}: [{symbol}] {msg}" -r n' : '-f parseable -r n -i y') })
let errorformat =
\ '%A%f:%l:%c:%t: %m,' .