Sep-07-2019, 10:23 PM
The string of a bytestring is still a bytestring and is not equal to the string with the same characters. Instead of testing
str(x) == '{'
, try testing x == b'{'
.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures