Fix lint
This commit is contained in:
parent
44d1056e54
commit
955910a0e8
@ -215,7 +215,8 @@ class HostBlocker:
|
||||
auto_remove=True)
|
||||
self._in_progress.append(download)
|
||||
download.finished.connect(
|
||||
functools.partial(self.on_download_finished, download, win_id))
|
||||
functools.partial(self.on_download_finished, download,
|
||||
win_id))
|
||||
|
||||
def _merge_file(self, byte_io):
|
||||
"""Read and merge host files.
|
||||
|
@ -57,7 +57,7 @@ def create(win_id, parent=None):
|
||||
|
||||
def init(args):
|
||||
"""Initialize backend-specific modules."""
|
||||
if objreg.get('args').backend == 'webengine':
|
||||
if args.backend == 'webengine':
|
||||
from qutebrowser.browser.webengine import webenginetab
|
||||
webenginetab.init()
|
||||
else:
|
||||
|
@ -19,8 +19,9 @@
|
||||
|
||||
"""A request interceptor taking care of adblocking and custom headers."""
|
||||
|
||||
from PyQt5.QtWidgets import QApplication
|
||||
# pylint: disable=no-name-in-module,import-error,useless-suppression
|
||||
from PyQt5.QtWebEngineCore import QWebEngineUrlRequestInterceptor
|
||||
# pylint: enable=no-name-in-module,import-error,useless-suppression
|
||||
|
||||
from qutebrowser.browser import shared
|
||||
from qutebrowser.utils import utils, log
|
||||
|
Loading…
Reference in New Issue
Block a user