Remove unused imports
This commit is contained in:
parent
b5dd69f4a6
commit
0deb422cfd
@ -26,7 +26,7 @@ import functools
|
|||||||
|
|
||||||
import sip
|
import sip
|
||||||
from PyQt5.QtCore import pyqtSlot, Qt, QEvent, QPoint, QUrl, QTimer
|
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
|
from PyQt5.QtNetwork import QAuthenticator
|
||||||
# pylint: disable=no-name-in-module,import-error,useless-suppression
|
# pylint: disable=no-name-in-module,import-error,useless-suppression
|
||||||
from PyQt5.QtWidgets import QApplication
|
from PyQt5.QtWidgets import QApplication
|
||||||
|
@ -19,10 +19,9 @@
|
|||||||
|
|
||||||
"""The main browser widget for QtWebEngine."""
|
"""The main browser widget for QtWebEngine."""
|
||||||
|
|
||||||
import os
|
|
||||||
import functools
|
import functools
|
||||||
|
|
||||||
from PyQt5.QtCore import pyqtSignal, pyqtSlot, QUrl, PYQT_VERSION
|
from PyQt5.QtCore import pyqtSignal, pyqtSlot, QUrl
|
||||||
from PyQt5.QtGui import QPalette
|
from PyQt5.QtGui import QPalette
|
||||||
# pylint: disable=no-name-in-module,import-error,useless-suppression
|
# pylint: disable=no-name-in-module,import-error,useless-suppression
|
||||||
from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage
|
from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage
|
||||||
@ -31,8 +30,8 @@ from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage
|
|||||||
from qutebrowser.browser import shared
|
from qutebrowser.browser import shared
|
||||||
from qutebrowser.browser.webengine import certificateerror
|
from qutebrowser.browser.webengine import certificateerror
|
||||||
from qutebrowser.config import config
|
from qutebrowser.config import config
|
||||||
from qutebrowser.utils import (log, debug, usertypes, qtutils, jinja, urlutils,
|
from qutebrowser.utils import (log, debug, usertypes, jinja, urlutils, message,
|
||||||
message, objreg)
|
objreg)
|
||||||
|
|
||||||
|
|
||||||
class WebEngineView(QWebEngineView):
|
class WebEngineView(QWebEngineView):
|
||||||
|
@ -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):
|
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!")
|
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:
|
if x is None and y is None:
|
||||||
point = 'PyQt5.QtCore.QPoint(*, *)' # not counting 0/0 here
|
point = 'PyQt5.QtCore.QPoint(*, *)' # not counting 0/0 here
|
||||||
elif x == '0' and y == '0':
|
elif x == '0' and y == '0':
|
||||||
|
Loading…
Reference in New Issue
Block a user