From 8714282570b14bd7fa403fa58cc2fe81b8ab0053 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 12 Jun 2020 13:32:55 -0400 Subject: [PATCH] console: Convert to Python3 string encoding Signed-off-by: Kevin O'Connor --- klippy/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/console.py b/klippy/console.py index a9200149..adbc77be 100755 --- a/klippy/console.py +++ b/klippy/console.py @@ -187,7 +187,7 @@ class KeyboardReader: return None return line def process_kbd(self, eventtime): - self.data += os.read(self.fd, 4096) + self.data += os.read(self.fd, 4096).decode() kbdlines = self.data.split('\n') for line in kbdlines[:-1]: