mirror of https://github.com/Desuuuu/klipper.git
palette2: Use regular str() types for input 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:
parent
1dee974aea
commit
ccee189f99
|
@ -544,7 +544,7 @@ class Palette2:
|
|||
self.cmd_Disconnect()
|
||||
return self.reactor.NEVER
|
||||
if len(raw_bytes):
|
||||
text_buffer = self.read_buffer + raw_bytes.decode()
|
||||
text_buffer = self.read_buffer + str(raw_bytes.decode())
|
||||
while True:
|
||||
i = text_buffer.find("\n")
|
||||
if i >= 0:
|
||||
|
|
Loading…
Reference in New Issue