From de66b68b7580bdac993b4c773e5101eb6b59887f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= Date: Fri, 5 Feb 2016 17:13:14 +0100 Subject: [PATCH] Fix problems reported by pylint --- qutebrowser/browser/hints.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 3212d34fc..a02abf4e5 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -725,7 +725,7 @@ class HintManager(QObject): keyparser.update_bindings(strings, preserve_filter=True) def _filter_matches(self, filterstr, elemstr): - """Returns True if `filterstr` matches `elemstr`.""" + """Return True if `filterstr` matches `elemstr`.""" # Empty string and None always match if not filterstr: return True @@ -899,10 +899,10 @@ class HintManager(QObject): """Filter displayed hints according to a text. Args: - filterstr: The string to filter with, or None to use the filter from - previous call (saved in `self._filterstr`). If `filterstr` - is an empty string or if both `filterstr` and - `self._filterstr` are None, all hints are shown. + filterstr: The string to filter with, or None to use the filter + from previous call (saved in `self._filterstr`). If + `filterstr` is an empty string or if both `filterstr` + and `self._filterstr` are None, all hints are shown. """ if filterstr is None: filterstr = self._filterstr @@ -932,7 +932,8 @@ class HintManager(QObject): pass if not elems: # Whoops, filtered all hints - modeman.leave(self._win_id, usertypes.KeyMode.hint, 'all filtered') + modeman.leave(self._win_id, usertypes.KeyMode.hint, + 'all filtered') return self._update_strings(elems) visible = self._context.elems @@ -946,7 +947,8 @@ class HintManager(QObject): pass if not visible: # Whoops, filtered all hints - modeman.leave(self._win_id, usertypes.KeyMode.hint, 'all filtered') + modeman.leave(self._win_id, usertypes.KeyMode.hint, + 'all filtered') return if (len(visible) == 1 and