provider/pythonx: use robust comparison (via vint)

This commit is contained in:
Daniel Hahler
2016-05-28 17:16:24 +02:00
parent 48e945e588
commit 1ea1626764

View File

@@ -18,9 +18,9 @@ function! provider#pythonx#Require(host) abort
endfor
try
let channel_id = rpcstart((ver == '2' ?
let channel_id = rpcstart((ver ==# '2' ?
\ provider#python#Prog() : provider#python3#Prog()), args)
if rpcrequest(channel_id, 'poll') == 'ok'
if rpcrequest(channel_id, 'poll') ==# 'ok'
return channel_id
endif
catch
@@ -70,7 +70,7 @@ endfunction
function! s:check_interpreter(prog, major_ver, skip) abort
let prog_path = exepath(a:prog)
if prog_path == ''
if prog_path ==# ''
return [0, a:prog . ' not found in search path or not executable.']
endif