Remove unused imports

This commit is contained in:
Florian Bruhin 2016-09-07 11:51:57 +02:00
parent 0ff98f568c
commit ae3b7c9f15
2 changed files with 3 additions and 3 deletions

View File

@ -46,14 +46,14 @@ from qutebrowser.browser import (urlmarks, browsertab, inspector, navigate,
webelem)
from qutebrowser.browser.webkit import downloads
try:
from qutebrowser.browser.webkit import webkitelem, mhtml
from qutebrowser.browser.webkit import mhtml
except ImportError:
# Failing imports on QtWebEngine, only used in QtWebKit commands.
# FIXME:qtwebengine don't import this anymore at all
pass
from qutebrowser.keyinput import modeman
from qutebrowser.utils import (message, usertypes, log, qtutils, urlutils,
objreg, utils, typing, javascript)
objreg, utils, typing)
from qutebrowser.utils.usertypes import KeyMode
from qutebrowser.misc import editor, guiprocess
from qutebrowser.completion.models import instances, sortfilter

View File

@ -30,7 +30,7 @@ from PyQt5.QtWebKitWidgets import QWebView, QWebPage, QWebFrame
from qutebrowser.config import config
from qutebrowser.keyinput import modeman
from qutebrowser.utils import log, usertypes, utils, qtutils, objreg, debug
from qutebrowser.browser.webkit import webpage, webkitelem
from qutebrowser.browser.webkit import webpage
class WebView(QWebView):