mirror of
git://soft.sys114.com/klipper
synced 2026-02-04 16:10:35 +09:00
console: Convert to Python3 string encoding
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user