From 32de5b76a9b74eb0b369b1ea3aa4ac2aa3526ca7 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Fri, 1 Jan 2016 20:16:49 +0100 Subject: [PATCH] urgh be awake --- qutebrowser/browser/hints.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 5316338ad..a8d073805 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -1033,9 +1033,9 @@ class WordHinter: } ) - return (attr_extractors[tag](elem) + return (attr_extractors[attr](elem) for attr in extractable_attrs[elem.tagName()] - if attr in elem or attr == "text")) + if attr in elem or attr == "text") def tag_words_to_hints(self, words): """Take words and transform them to proper hints if possible.""" @@ -1082,4 +1082,3 @@ class WordHinter: used_hints.add(hint) hints.append(hint) return hints -