fix lint errors

This commit is contained in:
Milan Svoboda 2015-12-26 17:44:30 +01:00
parent f64a3451fa
commit 013df51fd2

View File

@ -29,6 +29,7 @@ from qutebrowser.utils import log, qtutils, debug
from qutebrowser.completion.models import base as completion
import re
class CompletionFilterModel(QSortFilterProxyModel):
"""Subclass of QSortFilterProxyModel with custom sorting/filtering.
@ -149,10 +150,7 @@ class CompletionFilterModel(QSortFilterProxyModel):
if not data:
continue
else:
if self.patternre.search(data.casefold()):
return True
else:
return False
return self.patternre.search(data.casefold()) == True
return False
def intelligentLessThan(self, lindex, rindex):