Message309566
The message is incorrect for the input to the function, and confusing because the caller did supply a bytes-like object.
The exception is from an implementation detail, and if the implementation changes the exception could as well.
I suggest the implementation is changed to follow the example of urllib.parse.unquote_to_bytes, which encodes its string parameter to bytes if it receives a str object.
Alternatively, a check for required type should be implemented and raise a TypeError with the correct error-message. |
|
Date |
User |
Action |
Args |
2018-01-06 18:39:07 | stein-k | set | recipients:
+ stein-k, r.david.murray |
2018-01-06 18:39:07 | stein-k | set | messageid: <1515263947.19.0.467229070634.issue32498@psf.upfronthosting.co.za> |
2018-01-06 18:39:07 | stein-k | link | issue32498 messages |
2018-01-06 18:39:07 | stein-k | create | |
|