From 5aaf3b343039dad5157edcf59285980332016bd9 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 24 Apr 2014 23:23:28 +0200 Subject: [PATCH] Add abstract execute() to KeyParser --- qutebrowser/keyinput/keyparser.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/qutebrowser/keyinput/keyparser.py b/qutebrowser/keyinput/keyparser.py index 8029636f4..e3265c59a 100644 --- a/qutebrowser/keyinput/keyparser.py +++ b/qutebrowser/keyinput/keyparser.py @@ -322,6 +322,15 @@ class KeyParser(QObject): "Ignoring keychain \"{}\" in section \"{}\" because " "keychains are not supported there.".format(key, sectname)) + def execute(self, cmdstr, count=None): + """Handle a completed keychain. + + Args: + cmdstr: The command to execute as a string. + count: The count if given. + """ + raise NotImplementedError + @pyqtSlot(str, str) def on_config_changed(self, section, _option): """Re-read the config if a keybinding was changed.""" @@ -363,5 +372,4 @@ class CommandKeyParser(KeyParser): message.set_cmd_text(':{} '.format(cmdstr)) def execute(self, cmdstr, count=None): - """Handle a completed keychain.""" self._run_or_fill(cmdstr, count, ignore_exc=False)