mark delimiters as byte literals

This commit is contained in:
Kevin Matz 2019-07-30 08:52:30 -04:00
parent 1f4a166bc3
commit 0936203996

View File

@ -55,7 +55,7 @@ class Robot:
def serial_read_handler(self, data):
data = data.strip()
if data.startswith('{') and data.endswith('}'):
if data.startswith(b'{') and data.endswith(b'}'):
data = data.lstrip('{').rstrip('}')
else:
return