diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-10-14 11:32:13 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-10-14 11:32:13 (GMT) |
commit | 2ec8063cc960d32e244dc6a27567f66a447bbda3 (patch) | |
tree | 0bcd652fd3dbcf365ab584d64748d2406eb5c295 /Python/errors.c | |
parent | 1285e5c80562ac84ca8bc0ea39b100215d1808a1 (diff) | |
download | cpython-2ec8063cc960d32e244dc6a27567f66a447bbda3.zip cpython-2ec8063cc960d32e244dc6a27567f66a447bbda3.tar.gz cpython-2ec8063cc960d32e244dc6a27567f66a447bbda3.tar.bz2 |
Modify _PyBytes_DecodeEscapeRecode() to use _PyBytesAPI
* Don't overallocate by 400% when recode is needed: only overallocate on demand
using _PyBytesWriter.
* Use _PyLong_DigitValue to convert hexadecimal digit to int
* Create _PyBytes_DecodeEscapeRecode() subfunction
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions