console: Convert to Python3 string encoding

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-06-12 13:32:55 -04:00
parent b3a39bebd4
commit 8714282570
1 changed files with 1 additions and 1 deletions

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]: