From 5a640821f9d6f3345fcd78970c0c8cbd2f57a4cd Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Tue, 16 Sep 2014 11:32:21 -0300 Subject: runtime: Fix one of python sanity checks Use sys.stdout.write which is compatible with python 2 and 3 --- runtime/plugin/python_setup.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'runtime/plugin/python_setup.vim') diff --git a/runtime/plugin/python_setup.vim b/runtime/plugin/python_setup.vim index 8f3cb08063..db8c6e3251 100644 --- a/runtime/plugin/python_setup.vim +++ b/runtime/plugin/python_setup.vim @@ -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 -- cgit