mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +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
|
" Execute python, import neovim and print a string. If import_result matches
|
||||||
" the printed string, we can probably start the host
|
" the printed string, we can probably start the host
|
||||||
let s:import_result = substitute(system(
|
let s:import_result = system(s:python_interpreter .
|
||||||
\ s:python_interpreter .' -c "import neovim; print \"ok\""'),
|
\ ' -c "import neovim, sys; sys.stdout.write(\"ok\")"')
|
||||||
\ '^[\s\n]*\(ok\)[\s\n]*$', '\1', '')
|
|
||||||
if s:import_result != 'ok'
|
if s:import_result != 'ok'
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
Reference in New Issue
Block a user