diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index c692a5ec3..abdd53d71 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -36,7 +36,7 @@ import pygments.formatters from qutebrowser.commands import userscripts, cmdexc, cmdutils from qutebrowser.config import config -from qutebrowser.browser import hints, quickmarks, webelem +from qutebrowser.browser import quickmarks, webelem from qutebrowser.utils import (message, editor, usertypes, log, qtutils, urlutils, objreg) diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 851e8302f..5e841134b 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -351,7 +351,7 @@ class HintManager(QObject): immediately=True) return qtutils.ensure_valid(url) - cmdreg.get('download-manager').get(url, elem.webFrame().page()) + objreg.get('download-manager').get(url, elem.webFrame().page()) def _call_userscript(self, url): """Call an userscript from a hint.""" diff --git a/qutebrowser/keyinput/modeparsers.py b/qutebrowser/keyinput/modeparsers.py index 7c0ea59bc..5a25a2cba 100644 --- a/qutebrowser/keyinput/modeparsers.py +++ b/qutebrowser/keyinput/modeparsers.py @@ -23,7 +23,7 @@ Module attributes: STARTCHARS: Possible chars for starting a commandline input. """ -from PyQt5.QtCore import pyqtSignal, pyqtSlot, Qt +from PyQt5.QtCore import pyqtSlot, Qt from qutebrowser.utils import message from qutebrowser.config import config diff --git a/qutebrowser/utils/objreg.py b/qutebrowser/utils/objreg.py index 5a798e58e..6f233ccf2 100644 --- a/qutebrowser/utils/objreg.py +++ b/qutebrowser/utils/objreg.py @@ -99,7 +99,6 @@ def _get_registry(scope): raise ValueError("Invalid scope '{}'!".format(scope)) - def get(name, default=_UNSET, scope='global'): """Helper function to get an object.