[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes
R. David Murray
report at bugs.python.org
Fri Jan 5 15:52:50 EST 2018
R. David Murray <rdmurray at bitdance.com> added the comment:
If you read the traceback the message is "correct" for some definition of correct: the right hand side controls the type of the expression, so it is objecting to trying to look for the string '%' in a bytes object.
There are probably ways this could be improved, but I'm not sure it is worth it, since this is just a general behavior of the 'in' operator.
----------
nosy: +r.david.murray
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32498>
_______________________________________
More information about the Python-bugs-list
mailing list