fix flake and pep remarks
This commit is contained in:
parent
2d71c541c6
commit
b7ba3cd53e
@ -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
|
||||
|
||||
|
@ -22,7 +22,6 @@
|
||||
|
||||
import os
|
||||
import os.path
|
||||
import re
|
||||
|
||||
import yaml
|
||||
import pytest
|
||||
|
Loading…
Reference in New Issue
Block a user