Lint fixes

This commit is contained in:
Daniel Hahler
2017-08-09 00:13:55 +02:00
parent 163a0b5db1
commit ddaec5652b

View File

@@ -152,9 +152,9 @@ function! jedi#setup_py_version(py_version) abort
execute 'command! -nargs=1 PythonJedi '.cmd_exec.' <args>' execute 'command! -nargs=1 PythonJedi '.cmd_exec.' <args>'
let s:init_outcome = 0
let init_lines = [ let init_lines = [
\ 'import vim', \ 'import vim',
\ 'vim.command(''let s:init_outcome = 0'')',
\ 'try:', \ 'try:',
\ ' import jedi_vim', \ ' import jedi_vim',
\ 'except Exception as exc:', \ 'except Exception as exc:',
@@ -166,7 +166,7 @@ function! jedi#setup_py_version(py_version) abort
catch catch
throw printf('jedi#setup_py_version: failed to run Python for initialization: %s.', v:exception) throw printf('jedi#setup_py_version: failed to run Python for initialization: %s.', v:exception)
endtry endtry
if !exists('s:init_outcome') if s:init_outcome is 0
throw 'jedi#setup_py_version: failed to run Python for initialization.' throw 'jedi#setup_py_version: failed to run Python for initialization.'
elseif s:init_outcome isnot 1 elseif s:init_outcome isnot 1
throw printf('jedi#setup_py_version: %s.', s:init_outcome) throw printf('jedi#setup_py_version: %s.', s:init_outcome)
@@ -263,12 +263,12 @@ EOF
messages messages
echo '```' echo '```'
echo "\n" echo "\n"
echo "<details><summary>:scriptnames</summary>" echo '<details><summary>:scriptnames</summary>'
echo "\n" echo "\n"
echo '```' echo '```'
scriptnames scriptnames
echo '```' echo '```'
echo "</details>" echo '</details>'
endif endif
endfunction endfunction