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 committed 2021-10-31 13:52:31 -04:00
1 parent 1dee974aea
commit ccee189f99
1 file changed
+1 -1
+1 -1
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: