fix flake and pep remarks

This commit is contained in:
Felix Van der Jeugt 2016-04-25 11:35:16 +02:00
parent 2d71c541c6
commit b7ba3cd53e
2 changed files with 2 additions and 4 deletions

View File

@ -1080,8 +1080,8 @@ class WordHinter:
new_no_prefixes = self.filter_prefixes(new, existing) new_no_prefixes = self.filter_prefixes(new, existing)
fallback_no_prefixes = self.filter_prefixes(fallback, existing) fallback_no_prefixes = self.filter_prefixes(fallback, existing)
# either the first good, or None # either the first good, or None
return (next(new_no_prefixes, None) return (next(new_no_prefixes, None) or
or next(fallback_no_prefixes, None)) next(fallback_no_prefixes, None))
def hint(self, elems): def hint(self, elems):
"""Produce hint labels based on the html tags. """Produce hint labels based on the html tags.
@ -1107,4 +1107,3 @@ class WordHinter:
used_hints.add(hint) used_hints.add(hint)
hints.append(hint) hints.append(hint)
return hints return hints

View File

@ -22,7 +22,6 @@
import os import os
import os.path import os.path
import re
import yaml import yaml
import pytest import pytest