mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 18:21:31 +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()
|
self.pipe_io.start()
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def handle_pipe_event(self, message):
|
def handle_pipe_event(self, message_bytes):
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
@ -42,6 +42,6 @@ class PipeIOEventHandler(PipeIOEventHandlerBase):
|
|||||||
json_bytes = dumps(message).encode()
|
json_bytes = dumps(message).encode()
|
||||||
self.pipe_io.send_message(json_bytes)
|
self.pipe_io.send_message(json_bytes)
|
||||||
|
|
||||||
def handle_pipe_event(self, message):
|
def handle_pipe_event(self, message_bytes):
|
||||||
json = loads(message)
|
json = loads(message_bytes)
|
||||||
self.server_connector.send(json)
|
self.server_connector.send(json)
|
||||||
|
Loading…
Reference in New Issue
Block a user