From 19d8202b01df8dab635c738d782c7bf3b8fed2e7 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 17 Jan 2014 08:11:29 +0100 Subject: [PATCH] Default to argv=None for commands --- qutebrowser/commands.py | 2 +- qutebrowser/keys.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/commands.py b/qutebrowser/commands.py index a6cb7c6ab..8dad2cf50 100644 --- a/qutebrowser/commands.py +++ b/qutebrowser/commands.py @@ -47,7 +47,7 @@ class Command(QObject): (self.nargs == '+' and len(argv) < 1)): raise TypeError("Invalid argument count!") - def run(self, argv): + def run(self, argv=None): if not self.signal: raise NotImplementedError self.signal.emit() diff --git a/qutebrowser/keys.py b/qutebrowser/keys.py index 783233d8d..061cf5260 100644 --- a/qutebrowser/keys.py +++ b/qutebrowser/keys.py @@ -21,4 +21,4 @@ class KeyParser(QObject): if cmd.nargs and cmd.nargs != 0: self.set_cmd_text.emit(':{} '.format(cmd.name)) else: - cmd.run([]) + cmd.run()