console: Use regular str() types for commands on Python2

Avoid using unicode() types on Python2 as it can lead to subtle
errors.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-10-31 13:40:11 -04:00
parent d6c3aaad8a
commit 7a6fd1a1aa
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).decode()
self.data += str(os.read(self.fd, 4096).decode())
kbdlines = self.data.split('\n')
for line in kbdlines[:-1]: