diff --git a/qutebrowser/browser/webengine/webenginetab.py b/qutebrowser/browser/webengine/webenginetab.py index 6fb5bca26..88c693244 100644 --- a/qutebrowser/browser/webengine/webenginetab.py +++ b/qutebrowser/browser/webengine/webenginetab.py @@ -26,7 +26,7 @@ import functools import sip from PyQt5.QtCore import pyqtSlot, Qt, QEvent, QPoint, QUrl, QTimer -from PyQt5.QtGui import QKeyEvent, QIcon +from PyQt5.QtGui import QKeyEvent from PyQt5.QtNetwork import QAuthenticator # pylint: disable=no-name-in-module,import-error,useless-suppression from PyQt5.QtWidgets import QApplication diff --git a/qutebrowser/browser/webengine/webview.py b/qutebrowser/browser/webengine/webview.py index a861b9219..90b9a70fb 100644 --- a/qutebrowser/browser/webengine/webview.py +++ b/qutebrowser/browser/webengine/webview.py @@ -19,10 +19,9 @@ """The main browser widget for QtWebEngine.""" -import os import functools -from PyQt5.QtCore import pyqtSignal, pyqtSlot, QUrl, PYQT_VERSION +from PyQt5.QtCore import pyqtSignal, pyqtSlot, QUrl from PyQt5.QtGui import QPalette # pylint: disable=no-name-in-module,import-error,useless-suppression from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage @@ -31,8 +30,8 @@ from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage from qutebrowser.browser import shared from qutebrowser.browser.webengine import certificateerror from qutebrowser.config import config -from qutebrowser.utils import (log, debug, usertypes, qtutils, jinja, urlutils, - message, objreg) +from qutebrowser.utils import (log, debug, usertypes, jinja, urlutils, message, + objreg) class WebEngineView(QWebEngineView): diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index 0f4acaaf6..d7410b3bc 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -330,10 +330,6 @@ class QuteProc(testprocess.Process): if (x is None and y is not None) or (y is None and x is not None): raise ValueError("Either both x/y or neither must be given!") - if self.request.config.webengine: - # pylint: disable=no-name-in-module,useless-suppression - from PyQt5.QtWebEngineWidgets import QWebEnginePage - # pylint: enable=no-name-in-module,useless-suppression if x is None and y is None: point = 'PyQt5.QtCore.QPoint(*, *)' # not counting 0/0 here elif x == '0' and y == '0':