mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 19:24:36 +08:00
Revert "Use " with the shell argument for system()"
This reverts commit 95b8dd77ba.
This commit is contained in:
@@ -47,7 +47,6 @@ Matthew Tylee Atkinson (@matatk)
|
|||||||
Pedro Ferrari (@petobens)
|
Pedro Ferrari (@petobens)
|
||||||
Daniel Hahler (@blueyed)
|
Daniel Hahler (@blueyed)
|
||||||
Dave Honneffer (@pearofducks)
|
Dave Honneffer (@pearofducks)
|
||||||
Daisuke Suzuki (@daisuzu) <daisuzu@gmail.com>
|
|
||||||
|
|
||||||
|
|
||||||
@something are github user names.
|
@something are github user names.
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ function! s:init_python()
|
|||||||
" avoids starting both of them.
|
" avoids starting both of them.
|
||||||
|
|
||||||
" Get default python version from interpreter in $PATH.
|
" Get default python version from interpreter in $PATH.
|
||||||
let s:def_py = system('python -c "import sys; sys.stdout.write(str(sys.version_info[0]))"')
|
let s:def_py = system("python -c 'import sys; sys.stdout.write(str(sys.version_info[0]))'")
|
||||||
if v:shell_error != 0 || !len(s:def_py)
|
if v:shell_error != 0 || !len(s:def_py)
|
||||||
if !exists("g:jedi#squelch_py_warning")
|
if !exists("g:jedi#squelch_py_warning")
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
|
|||||||
Reference in New Issue
Block a user