checkhealth: print -> sys.stdout.write

Co-Authored-By: Peter Lithammer <peter.lithammer@gmail.com>
This commit is contained in:
David Lukes 2020-01-29 13:31:37 +01:00 committed by Justin M. Keyes
parent bf85cc0909
commit 1b20014972

View File

@ -489,7 +489,7 @@ endfunction
" sys.executable.
function! s:locate_pythonx(invocation) abort
return s:normalize_path(system(a:invocation
\ . ' -c "from __future__ import print_function; import sys; print(sys.executable, end=\"\")"'))
\ . ' -c "import sys; sys.stdout.write(sys.executable)"'))
endfunction
" If $VIRTUAL_ENV is set, check whether its Python executables will be