Fix lint
This commit is contained in:
parent
143fdc5b9f
commit
55e2ccabf5
@ -36,7 +36,7 @@ import pygments.formatters
|
|||||||
|
|
||||||
from qutebrowser.commands import userscripts, cmdexc, cmdutils
|
from qutebrowser.commands import userscripts, cmdexc, cmdutils
|
||||||
from qutebrowser.config import config
|
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,
|
from qutebrowser.utils import (message, editor, usertypes, log, qtutils,
|
||||||
urlutils, objreg)
|
urlutils, objreg)
|
||||||
|
|
||||||
|
@ -351,7 +351,7 @@ class HintManager(QObject):
|
|||||||
immediately=True)
|
immediately=True)
|
||||||
return
|
return
|
||||||
qtutils.ensure_valid(url)
|
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):
|
def _call_userscript(self, url):
|
||||||
"""Call an userscript from a hint."""
|
"""Call an userscript from a hint."""
|
||||||
|
@ -23,7 +23,7 @@ Module attributes:
|
|||||||
STARTCHARS: Possible chars for starting a commandline input.
|
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.utils import message
|
||||||
from qutebrowser.config import config
|
from qutebrowser.config import config
|
||||||
|
@ -99,7 +99,6 @@ def _get_registry(scope):
|
|||||||
raise ValueError("Invalid scope '{}'!".format(scope))
|
raise ValueError("Invalid scope '{}'!".format(scope))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get(name, default=_UNSET, scope='global'):
|
def get(name, default=_UNSET, scope='global'):
|
||||||
"""Helper function to get an object.
|
"""Helper function to get an object.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user