Closed EFanZh closed 5 years ago
That may be useful on certain languages or certain input encodings.
The original source code specifies UTF-8 encoding on both sides of the equation sign directly, so if the decoded strings are equal, the original bytes must be equal.
Another reason for doing this is that symbol
and token
might be str
in Python 3, which does not have the decode
method.
For example, it seems possible that the symbol
and token
values are come from here:
A double quoted string literal is of type str
, which does not have decode
method.
We found that this one is useful. Thanks for your contribution!
The
decode
call seems unnecessary.