Commit ee254d25 authored by Philipp Hörist's avatar Philipp Hörist

Fix pylint errors

parent 6b221e70
......@@ -60,6 +60,7 @@ def __init__(self, account, jid, commandnode=None):
self.stage_back_button_cb = None
self.stage_forward_button_cb = None
self.stage_execute_button_cb = None
self.stage_finish_button_cb = None
self.stage_close_button_cb = None
self.stage_restart_button_cb = None
self.stage_window_delete_cb = None
......
......@@ -88,7 +88,7 @@ def list_commands(host):
yield name, command
class Dispatchable(type):
# pylint: disable=no-value-for-parameter
def __init__(self, name, bases, namespace):
parents = super(Dispatchable, self)
parents.__init__(name, bases, namespace)
......
......@@ -75,6 +75,7 @@ def process_as_command(self, text):
Try to process text as a command. Returns True if it has been
processed as a command and False otherwise.
"""
# pylint: disable=assignment-from-no-return
prefix = text.startswith(self.COMMAND_PREFIX)
length = len(text) > len(self.COMMAND_PREFIX)
if not (prefix and length):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment