Fix pylint errors

This commit is contained in:
Philipp Hörist 2018-09-12 20:58:48 +02:00
parent 6b221e7059
commit ee254d25d2
3 changed files with 3 additions and 1 deletions

View File

@ -60,6 +60,7 @@ class CommandWindow:
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

View File

@ -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)

View File

@ -75,6 +75,7 @@ class CommandProcessor(object):
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):