diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-09-16 11:32:21 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-09-16 14:14:00 -0300 |
commit | 5a640821f9d6f3345fcd78970c0c8cbd2f57a4cd (patch) | |
tree | efecda2faa7a2e4c399ab97f71da14e74db0df8b /runtime/plugin/python_setup.vim | |
parent | aab5f1a898ad7110bd9ed3baf6735618ff2f616e (diff) | |
download | rneovim-5a640821f9d6f3345fcd78970c0c8cbd2f57a4cd.tar.gz rneovim-5a640821f9d6f3345fcd78970c0c8cbd2f57a4cd.tar.bz2 rneovim-5a640821f9d6f3345fcd78970c0c8cbd2f57a4cd.zip |
runtime: Fix one of python sanity checks
Use sys.stdout.write which is compatible with python 2 and 3
Diffstat (limited to 'runtime/plugin/python_setup.vim')
-rw-r--r-- | runtime/plugin/python_setup.vim | 5 |
1 files changed, 2 insertions, 3 deletions
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 |