From 9c4ebb97d79eb62018a2b5a635f56123ad1cdb37 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 30 Nov 2018 11:06:19 +0100 Subject: [PATCH] Fix refactoring issues --- qutebrowser/api/cmdutils.py | 3 +-- qutebrowser/commands/command.py | 2 +- tests/end2end/features/misc.feature | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/qutebrowser/api/cmdutils.py b/qutebrowser/api/cmdutils.py index f95e984ca..10acf9b4d 100644 --- a/qutebrowser/api/cmdutils.py +++ b/qutebrowser/api/cmdutils.py @@ -22,8 +22,7 @@ import inspect import typing -from qutebrowser.misc import objects -from qutebrowser.utils import qtutils, log +from qutebrowser.utils import qtutils from qutebrowser.commands import command, cmdexc diff --git a/qutebrowser/commands/command.py b/qutebrowser/commands/command.py index 5422a9984..811bc78eb 100644 --- a/qutebrowser/commands/command.py +++ b/qutebrowser/commands/command.py @@ -524,7 +524,7 @@ class Command: def register(self): """Register this command in objects.commands.""" - log.commands.vdebug( # type: ignore + log.commands.vdebug( "Registering command {} (from {}:{})".format( self.name, self.handler.__module__, self.handler.__qualname__)) if self.name in objects.commands: diff --git a/tests/end2end/features/misc.feature b/tests/end2end/features/misc.feature index a8e81b7b5..b9677a158 100644 --- a/tests/end2end/features/misc.feature +++ b/tests/end2end/features/misc.feature @@ -197,7 +197,7 @@ Feature: Various utility commands. # We can't use "When I open" because we don't want to wait for load # finished 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() (tab *)" in the log And I wait 1s And I run :stop And I open redirect-later-continue in a new tab