Remove unused imports
This commit is contained in:
parent
0ea7a1457d
commit
1162e640c5
@ -50,17 +50,6 @@ from qutebrowser.misc import savemanager, sql
|
||||
from qutebrowser.keyinput import modeman
|
||||
|
||||
|
||||
try:
|
||||
from PyQt5.QtWebKitWidgets import QWebView
|
||||
except ImportError:
|
||||
QWebView = None
|
||||
|
||||
try:
|
||||
from PyQt5.QtWebEngineWidgets import QWebEngineView
|
||||
except ImportError:
|
||||
QWebEngineView = None
|
||||
|
||||
|
||||
class WinRegistryHelper:
|
||||
|
||||
"""Helper class for win_registry."""
|
||||
|
@ -21,7 +21,6 @@
|
||||
|
||||
import os
|
||||
import os.path
|
||||
import logging
|
||||
|
||||
import pytest
|
||||
import jinja2
|
||||
@ -29,7 +28,7 @@ import jinja2
|
||||
from PyQt5.QtCore import QUrl
|
||||
|
||||
import helpers.utils
|
||||
from qutebrowser.utils import utils, usertypes
|
||||
from qutebrowser.utils import utils
|
||||
|
||||
|
||||
class JSTester:
|
||||
|
@ -23,7 +23,6 @@ import pytest
|
||||
|
||||
import helpers.utils
|
||||
|
||||
from PyQt5.QtCore import Qt
|
||||
QWebSettings = pytest.importorskip("PyQt5.QtWebKit").QWebSettings
|
||||
QWebPage = pytest.importorskip("PyQt5.QtWebKitWidgets").QWebPage
|
||||
|
||||
|
@ -27,11 +27,6 @@ QWebEngineProfile = QtWebEngineWidgets.QWebEngineProfile
|
||||
|
||||
from qutebrowser.utils import javascript
|
||||
|
||||
try:
|
||||
from qutebrowser.browser.webengine import webenginesettings
|
||||
except ImportError:
|
||||
webenginesettings = None
|
||||
|
||||
|
||||
DEFAULT_BODY_BG = "rgba(0, 0, 0, 0)"
|
||||
GREEN_BODY_BG = "rgb(0, 255, 0)"
|
||||
|
Loading…
Reference in New Issue
Block a user