Fix pylint errors
This commit is contained in:
parent
6b221e7059
commit
ee254d25d2
|
@ -60,6 +60,7 @@ class CommandWindow:
|
||||||
self.stage_back_button_cb = None
|
self.stage_back_button_cb = None
|
||||||
self.stage_forward_button_cb = None
|
self.stage_forward_button_cb = None
|
||||||
self.stage_execute_button_cb = None
|
self.stage_execute_button_cb = None
|
||||||
|
self.stage_finish_button_cb = None
|
||||||
self.stage_close_button_cb = None
|
self.stage_close_button_cb = None
|
||||||
self.stage_restart_button_cb = None
|
self.stage_restart_button_cb = None
|
||||||
self.stage_window_delete_cb = None
|
self.stage_window_delete_cb = None
|
||||||
|
|
|
@ -88,7 +88,7 @@ def list_commands(host):
|
||||||
yield name, command
|
yield name, command
|
||||||
|
|
||||||
class Dispatchable(type):
|
class Dispatchable(type):
|
||||||
|
# pylint: disable=no-value-for-parameter
|
||||||
def __init__(self, name, bases, namespace):
|
def __init__(self, name, bases, namespace):
|
||||||
parents = super(Dispatchable, self)
|
parents = super(Dispatchable, self)
|
||||||
parents.__init__(name, bases, namespace)
|
parents.__init__(name, bases, namespace)
|
||||||
|
|
|
@ -75,6 +75,7 @@ class CommandProcessor(object):
|
||||||
Try to process text as a command. Returns True if it has been
|
Try to process text as a command. Returns True if it has been
|
||||||
processed as a command and False otherwise.
|
processed as a command and False otherwise.
|
||||||
"""
|
"""
|
||||||
|
# pylint: disable=assignment-from-no-return
|
||||||
prefix = text.startswith(self.COMMAND_PREFIX)
|
prefix = text.startswith(self.COMMAND_PREFIX)
|
||||||
length = len(text) > len(self.COMMAND_PREFIX)
|
length = len(text) > len(self.COMMAND_PREFIX)
|
||||||
if not (prefix and length):
|
if not (prefix and length):
|
||||||
|
|
Loading…
Reference in New Issue