Remove unused imports

This commit is contained in:
Florian Bruhin 2018-03-19 19:42:56 +01:00
parent 0ea7a1457d
commit 1162e640c5
4 changed files with 1 additions and 19 deletions

View File

@ -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."""

View File

@ -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:

View File

@ -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

View File

@ -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)"