Fix lint
This commit is contained in:
parent
34822bb530
commit
d9ecc35eef
|
|
@ -1402,7 +1402,7 @@ class CommandDispatcher:
|
|||
query = QUrlQuery()
|
||||
query.addQueryItem('level', level)
|
||||
if plain:
|
||||
query.addQueryItem('plain', None)
|
||||
query.addQueryItem('plain', typing.cast(str, None))
|
||||
|
||||
url = QUrl('qute://log')
|
||||
url.setQuery(query)
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ class HostBlocker:
|
|||
if self._is_blocked(request_url=info.request_url,
|
||||
first_party_url=info.first_party_url):
|
||||
logger.debug("Request to {} blocked by host blocker."
|
||||
.format(info.request_url.host()))
|
||||
.format(info.request_url.host()))
|
||||
info.block()
|
||||
|
||||
def _read_hosts_line(self, raw_line: bytes) -> typing.Set[str]:
|
||||
|
|
|
|||
Loading…
Reference in New Issue