mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
runtime: Fix one of python sanity checks
Use sys.stdout.write which is compatible with python 2 and 3
This commit is contained in:
@ -29,9 +29,8 @@ endif
|
||||
|
||||
" Execute python, import neovim and print a string. If import_result matches
|
||||
" the printed string, we can probably start the host
|
||||
let s:import_result = substitute(system(
|
||||
\ s:python_interpreter .' -c "import neovim; print \"ok\""'),
|
||||
\ '^[\s\n]*\(ok\)[\s\n]*$', '\1', '')
|
||||
let s:import_result = system(s:python_interpreter .
|
||||
\ ' -c "import neovim, sys; sys.stdout.write(\"ok\")"')
|
||||
if s:import_result != 'ok'
|
||||
finish
|
||||
endif
|
||||
|
Reference in New Issue
Block a user