2019-03-04 03:28:35 -05:00
|
|
|
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'python-compiler') != -1
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2018-12-26 05:19:25 -05:00
|
|
|
" Sometimes Python issues debugging messages
|
|
|
|
" which don't belong to a call stack context
|
|
|
|
" this function filters these messages
|
|
|
|
function! python#utils#fix_qflist() " {{{
|
|
|
|
let l:traceback = []
|
|
|
|
let l:qflist = getqflist()
|
|
|
|
|
|
|
|
for l:item in l:qflist
|
|
|
|
if !empty(l:item.type)
|
|
|
|
call add(l:traceback, l:item)
|
|
|
|
endif
|
|
|
|
endfor
|
|
|
|
|
|
|
|
if !empty(l:traceback)
|
|
|
|
call setqflist(l:traceback)
|
|
|
|
endif
|
|
|
|
endfunction " }}}
|