mirror of
https://github.com/neovim/neovim.git
synced 2025-11-18 08:11:28 +00:00
Merge pull request #4831 from blueyed/provider-pythonx-robust-comparison
provider/pythonx: use robust comparison (via vint)
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user