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:
Kevin O'Connor 2021-10-31 13:43:11 -04:00
parent 1dee974aea
commit ccee189f99
1 changed files with 1 additions and 1 deletions

View File

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