Fix refactoring issues

This commit is contained in:
Florian Bruhin 2018-11-30 11:06:19 +01:00
parent 536a7ef1e6
commit 9c4ebb97d7
3 changed files with 3 additions and 4 deletions

View File

@ -22,8 +22,7 @@
import inspect import inspect
import typing import typing
from qutebrowser.misc import objects from qutebrowser.utils import qtutils
from qutebrowser.utils import qtutils, log
from qutebrowser.commands import command, cmdexc from qutebrowser.commands import command, cmdexc

View File

@ -524,7 +524,7 @@ class Command:
def register(self): def register(self):
"""Register this command in objects.commands.""" """Register this command in objects.commands."""
log.commands.vdebug( # type: ignore log.commands.vdebug(
"Registering command {} (from {}:{})".format( "Registering command {} (from {}:{})".format(
self.name, self.handler.__module__, self.handler.__qualname__)) self.name, self.handler.__module__, self.handler.__qualname__))
if self.name in objects.commands: if self.name in objects.commands:

View File

@ -197,7 +197,7 @@ Feature: Various utility commands.
# We can't use "When I open" because we don't want to wait for load # We can't use "When I open" because we don't want to wait for load
# finished # finished
When I run :open http://localhost:(port)/redirect-later?delay=-1 When I run :open http://localhost:(port)/redirect-later?delay=-1
And I wait for "emitting: cur_load_status_changed('loading') (tab *)" in the log And I wait for "emitting: cur_load_status_changed(<LoadStatus.loading: *>) (tab *)" in the log
And I wait 1s And I wait 1s
And I run :stop And I run :stop
And I open redirect-later-continue in a new tab And I open redirect-later-continue in a new tab