From 66cbb8aa318bd7399cab6b0886887e454610b4f6 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 11 Feb 2017 17:22:35 +0100 Subject: [PATCH] Fix lint --- qutebrowser/browser/commands.py | 7 +++---- qutebrowser/browser/qutescheme.py | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 489627387..5013d6730 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1408,10 +1408,9 @@ class CommandDispatcher: tab.dump_async(callback, plain=plain) - @cmdutils.register(instance='command-dispatcher', name='history', - scope='window') - def show_history(self, tab=True, bg=False, window=False): - r"""Show browsing history + @cmdutils.register(instance='command-dispatcher', scope='window') + def history(self, tab=True, bg=False, window=False): + """Show browsing history. Args: tab: Open in a new tab. diff --git a/qutebrowser/browser/qutescheme.py b/qutebrowser/browser/qutescheme.py index d06f2ddf9..ac2abb7e4 100644 --- a/qutebrowser/browser/qutescheme.py +++ b/qutebrowser/browser/qutescheme.py @@ -163,7 +163,7 @@ def qute_bookmarks(_url): return 'text/html', html -@add_handler('history') +@add_handler('history') # noqa def qute_history(url): """Handler for qute:history. Display history.""" # Get current date from query parameter, if not given choose today. @@ -181,6 +181,7 @@ def qute_history(url): prev_date = curr_date - one_day def history_iter(reverse): + """Iterate through the history and get the items we're interested in.""" curr_timestamp = time.mktime(curr_date.timetuple()) history = objreg.get('web-history').history_dict.values() if reverse: