From e70eb8bb4247c248dc823b2cd638d98b8f7db321 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 19 Jun 2018 20:32:19 +0200 Subject: [PATCH] typos --- platypush/plugins/serial/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platypush/plugins/serial/__init__.py b/platypush/plugins/serial/__init__.py index 7ca59d85e..85738a306 100644 --- a/platypush/plugins/serial/__init__.py +++ b/platypush/plugins/serial/__init__.py @@ -23,14 +23,14 @@ class SerialPlugin(Plugin): self.baud_rate = baud_rate - def _read_json(serial_port): + def _read_json(self, serial_port): n_brackets = 0 is_escaped_ch = False parse_start = False - output = bytearray() + output = bytes() while True: - ch = bytes([serial_port.read()]) + ch = serial_port.read() if not ch: break