mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
Fix tests on python3
This commit is contained in:
parent
5c2c47aa2f
commit
ea3c939320
@ -42,13 +42,13 @@ else:
|
||||
|
||||
if hasattr(vim, 'vars'):
|
||||
def vim_getvar(varname):
|
||||
return vim.vars[bytes(varname)]
|
||||
return vim.vars[str(varname)]
|
||||
elif hasattr(vim, 'bindeval'):
|
||||
_vim_globals = vim.bindeval('g:')
|
||||
|
||||
def vim_getvar(varname): # NOQA
|
||||
try:
|
||||
return _vim_globals[bytes(varname)]
|
||||
return _vim_globals[str(varname)]
|
||||
except (KeyError, IndexError):
|
||||
raise KeyError(varname)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user