fix lint errors
This commit is contained in:
parent
f64a3451fa
commit
013df51fd2
@ -29,6 +29,7 @@ from qutebrowser.utils import log, qtutils, debug
|
|||||||
from qutebrowser.completion.models import base as completion
|
from qutebrowser.completion.models import base as completion
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
||||||
class CompletionFilterModel(QSortFilterProxyModel):
|
class CompletionFilterModel(QSortFilterProxyModel):
|
||||||
|
|
||||||
"""Subclass of QSortFilterProxyModel with custom sorting/filtering.
|
"""Subclass of QSortFilterProxyModel with custom sorting/filtering.
|
||||||
@ -149,10 +150,7 @@ class CompletionFilterModel(QSortFilterProxyModel):
|
|||||||
if not data:
|
if not data:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
if self.patternre.search(data.casefold()):
|
return self.patternre.search(data.casefold()) == True
|
||||||
return True
|
|
||||||
else:
|
|
||||||
return False
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def intelligentLessThan(self, lindex, rindex):
|
def intelligentLessThan(self, lindex, rindex):
|
||||||
|
Loading…
Reference in New Issue
Block a user