Fix lint
This commit is contained in:
parent
979b7cfaba
commit
626abd3c83
@ -171,7 +171,7 @@ class GreasemonkeyMatcher:
|
|||||||
return fnmatch.fnmatch(self._url_string, pattern)
|
return fnmatch.fnmatch(self._url_string, pattern)
|
||||||
|
|
||||||
def matches(self, script):
|
def matches(self, script):
|
||||||
"""Check whether the URL matches filtering rules of the given script."""
|
"""Check whether the URL matches filtering rules of the script."""
|
||||||
assert self.is_greaseable
|
assert self.is_greaseable
|
||||||
matching_includes = any(self._match_pattern(pat)
|
matching_includes = any(self._match_pattern(pat)
|
||||||
for pat in script.includes)
|
for pat in script.includes)
|
||||||
|
@ -273,8 +273,8 @@ class Command(misc.MinimalLineEditMixin, misc.CommandLineEdit):
|
|||||||
width = self.fontMetrics().width(text)
|
width = self.fontMetrics().width(text)
|
||||||
return QSize(width, height)
|
return QSize(width, height)
|
||||||
|
|
||||||
@pyqtSlot(str)
|
@pyqtSlot()
|
||||||
def _incremental_search(self, text):
|
def _incremental_search(self):
|
||||||
if not config.val.search.incremental:
|
if not config.val.search.incremental:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user