Author xiang.zhang
Recipients serhiy.storchaka, vstinner, xiang.zhang
Date 2016-10-22.15:25:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The patch makes several cleanups to unicode_decode_call_errorhandler_wchar/writer:

1. Use U instead O! for argument parser, it ought to be more efficient and write less code.
2. In theory, if inputobj is not bytes, there needs to be a goto onError, or it could crash. But PyUnicodeDecodeError_GetObject is guaranteed to return bytes, so we can remove the incomplete branch.
3. On success, we don't need Xdecref.
Date User Action Args
2016-10-22 15:25:14xiang.zhangsetrecipients: + xiang.zhang, vstinner, serhiy.storchaka
2016-10-22 15:25:14xiang.zhangsetmessageid: <>
2016-10-22 15:25:14xiang.zhanglinkissue28504 messages
2016-10-22 15:25:14xiang.zhangcreate