This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka, xiang.zhang
Date 2016-10-22.20:53:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477169628.97.0.862291217974.issue28510@psf.upfronthosting.co.za>
In-reply-to
Content
Since PyUnicodeDecodeError_GetObject() always returns bytes object, following PyBytes_AsString() never fails and can be replaced with the PyBytes_AS_STRING() macro. This makes error handlers looking a littler clearer and a little faster.

The patch is inspired by the patch of Xiang Zhang (issue28504).
History
Date User Action Args
2016-10-22 20:53:49serhiy.storchakasetrecipients: + serhiy.storchaka, xiang.zhang
2016-10-22 20:53:48serhiy.storchakasetmessageid: <1477169628.97.0.862291217974.issue28510@psf.upfronthosting.co.za>
2016-10-22 20:53:48serhiy.storchakalinkissue28510 messages
2016-10-22 20:53:48serhiy.storchakacreate