Rename parameter to reflect type in PipeIOEventHandler.handle_pipe_event

This commit is contained in:
Kristóf Tóth 2019-05-09 15:14:47 +02:00
parent 1bfaac0493
commit 078f8532cc

View File

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