Merge pull request #4831 from blueyed/provider-pythonx-robust-comparison

provider/pythonx: use robust comparison (via vint)
This commit is contained in:
Justin M. Keyes
2016-05-28 11:46:08 -04:00

View File

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