msgpack.vim: require python3 on Windows

timestamp.strftime('%s') workaround only works on unix.

ref: https://github.com/neovim/neovim/pull/8371#discussion_r186311766
This commit is contained in:
Justin M. Keyes 2018-05-10 14:09:54 +02:00
parent cb8ea55d71
commit 966e7abc49

View File

@ -40,7 +40,7 @@ function s:msgpack_init_python() abort
return s:msgpack_python_type return s:msgpack_python_type
endif endif
let s:msgpack_python_initialized = 1 let s:msgpack_python_initialized = 1
for suf in ['', '3'] for suf in (has('win32') ? ['3'] : ['', '3'])
try try
execute 'python' . suf execute 'python' . suf
\. "\n" \. "\n"