mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 10:54:22 +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)
|
||||
Daniel Hahler (@blueyed)
|
||||
Dave Honneffer (@pearofducks)
|
||||
Daisuke Suzuki (@daisuzu) <daisuzu@gmail.com>
|
||||
|
||||
|
||||
@something are github user names.
|
||||
|
||||
@@ -70,7 +70,7 @@ function! s:init_python()
|
||||
" avoids starting both of them.
|
||||
|
||||
" 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 !exists("g:jedi#squelch_py_warning")
|
||||
echohl WarningMsg
|
||||
|
||||
Reference in New Issue
Block a user