Revert "Use " with the shell argument for system()"

This reverts commit 95b8dd77ba.
This commit is contained in:
Daniel Hahler
2015-07-27 02:04:02 +02:00
parent 924b4db962
commit ed4a8be12e
2 changed files with 1 additions and 2 deletions

View File

@@ -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.

View File

@@ -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