fix #10 by ignoring all python interpreter warnings

This commit is contained in:
Alan Hamlett 2013-11-13 11:00:16 -08:00
parent a7fa999666
commit 7b4a4fcaec

View file

@ -79,7 +79,7 @@ let s:VERSION = '1.2.3'
let targetFile = a:last[2]
endif
if targetFile != ''
let cmd = ['python', s:plugin_directory . 'packages/wakatime/wakatime-cli.py']
let cmd = ['python', '-W', 'ignore', s:plugin_directory . 'packages/wakatime/wakatime-cli.py']
let cmd = cmd + ['--file', shellescape(targetFile)]
let cmd = cmd + ['--time', substitute(printf('%f', a:time), ',', '.', '')]
let cmd = cmd + ['--plugin', printf('vim-wakatime/%s', s:VERSION)]