Author stein-k
Recipients r.david.murray, stein-k
Date 2018-01-06.18:39:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1515263947.19.0.467229070634.issue32498@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-01-06 18:39:07stein-ksetrecipients: + stein-k, r.david.murray
2018-01-06 18:39:07stein-ksetmessageid: <1515263947.19.0.467229070634.issue32498@psf.upfronthosting.co.za>
2018-01-06 18:39:07stein-klinkissue32498 messages
2018-01-06 18:39:07stein-kcreate