mirror of https://github.com/Desuuuu/klipper.git
console: Convert to Python3 string encoding
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
b3a39bebd4
commit
8714282570
|
@ -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]:
|
||||
|
|
Loading…
Reference in New Issue