mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 07:11:32 +00:00
Rename parameter to reflect type in PipeIOEventHandler.handle_pipe_event
This commit is contained in:
parent
1bfaac0493
commit
078f8532cc
@ -21,7 +21,7 @@ class PipeIOEventHandlerBase(EventHandlerBase):
|
||||
self.pipe_io.start()
|
||||
|
||||
@abstractmethod
|
||||
def handle_pipe_event(self, message):
|
||||
def handle_pipe_event(self, message_bytes):
|
||||
raise NotImplementedError()
|
||||
|
||||
def cleanup(self):
|
||||
@ -42,6 +42,6 @@ class PipeIOEventHandler(PipeIOEventHandlerBase):
|
||||
json_bytes = dumps(message).encode()
|
||||
self.pipe_io.send_message(json_bytes)
|
||||
|
||||
def handle_pipe_event(self, message):
|
||||
json = loads(message)
|
||||
def handle_pipe_event(self, message_bytes):
|
||||
json = loads(message_bytes)
|
||||
self.server_connector.send(json)
|
||||
|
Loading…
Reference in New Issue
Block a user