console: Convert to Python3 string encoding

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor committed 2021-10-01 19:22:13 -04:00
1 parent b3a39bebd4
commit 8714282570
1 file changed
+1 -1
+1 -1
View File
@@ -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]: