Fix lint/bugs

This commit is contained in:
Florian Bruhin 2014-10-06 19:53:50 +02:00
parent 796dce86ae
commit 9281fa3992
4 changed files with 7 additions and 8 deletions

View File

@ -452,14 +452,14 @@ class CommandDispatcher:
hintmanager = objreg.get('hintmanager', scope='tab')
if where == 'prev':
hintmanager.follow_prevnext(frame, url, prev=True, tab=tab,
background=background, window=window)
background=bg, window=window)
elif where == 'next':
hintmanager.follow_prevnext(frame, url, prev=False, tab=tab,
background=background, window=window)
background=bg, window=window)
elif where == 'up':
self._navigate_up(url, tab, background, window)
self._navigate_up(url, tab, bg, window)
elif where in ('decrement', 'increment'):
self._navigate_incdec(url, where, tab, background, window)
self._navigate_incdec(url, where, tab, bg, window)
else:
raise ValueError("Got called with invalid value {} for "
"`where'.".format(where))

View File

@ -366,7 +366,7 @@ class Command:
value = self._type_conv[param.name](value)
return name, value
def _get_call_args(self, win_id):
def _get_call_args(self, win_id): # noqa
"""Get arguments for a function call.
Args:

View File

@ -229,4 +229,3 @@ def dump_objects():
for line in data:
lines.append(" {}".format(line))
return lines