From b7ba3cd53e4225c85eca85e4d0e52884b3cfdb86 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Mon, 25 Apr 2016 11:35:16 +0200 Subject: [PATCH] fix flake and pep remarks --- qutebrowser/browser/hints.py | 5 ++--- tests/integration/test_hints_html.py | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 352e592cd..eb7b7045c 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -1080,8 +1080,8 @@ class WordHinter: new_no_prefixes = self.filter_prefixes(new, existing) fallback_no_prefixes = self.filter_prefixes(fallback, existing) # either the first good, or None - return (next(new_no_prefixes, None) - or next(fallback_no_prefixes, None)) + return (next(new_no_prefixes, None) or + next(fallback_no_prefixes, None)) def hint(self, elems): """Produce hint labels based on the html tags. @@ -1107,4 +1107,3 @@ class WordHinter: used_hints.add(hint) hints.append(hint) return hints - diff --git a/tests/integration/test_hints_html.py b/tests/integration/test_hints_html.py index 6ac7bf595..b4a05712c 100644 --- a/tests/integration/test_hints_html.py +++ b/tests/integration/test_hints_html.py @@ -22,7 +22,6 @@ import os import os.path -import re import yaml import pytest