Fix whitespace issues so pyflakes doesn't complain

This commit is contained in:
Kim Silkebækken 2012-11-17 12:21:24 +01:00
parent 0f6d24b1e8
commit 4cb0559be4

View File

@ -43,8 +43,10 @@ if hasattr(vim, 'bindeval'):
vim_globals[var] = val vim_globals[var] = val
else: else:
import json import json
class VimFunc(object): class VimFunc(object):
__slots__ = ('f', 'rettype') __slots__ = ('f', 'rettype')
def __init__(self, f, rettype=None): def __init__(self, f, rettype=None):
self.f = f self.f = f
self.rettype = rettype self.rettype = rettype
@ -57,7 +59,7 @@ else:
get_vim_func = VimFunc get_vim_func = VimFunc
def set_global_var(var, val): def set_global_var(var, val): # NOQA
vim.command('let g:{0}={1}'.format(var, json.dumps(val))) vim.command('let g:{0}={1}'.format(var, json.dumps(val)))
vim_funcs = { vim_funcs = {
@ -72,6 +74,7 @@ vim_funcs = {
'hlexists': get_vim_func('hlexists', rettype=int), 'hlexists': get_vim_func('hlexists', rettype=int),
} }
def statusline(): def statusline():
winwidth = vim_funcs['winwidth'](0) winwidth = vim_funcs['winwidth'](0)