commit | 2ec8063cc960d32e244dc6a27567f66a447bbda3 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Wed Oct 14 13:32:13 2015 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Wed Oct 14 13:32:13 2015 +0200 |
tree | 0bcd652fd3dbcf365ab584d64748d2406eb5c295 | |
parent | 1285e5c80562ac84ca8bc0ea39b100215d1808a1 [diff] |
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