diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-10-09 01:39:28 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-10-09 01:39:28 +0200 |
commit | e7bf86cd7d7c9a3924501875a08c4ef4a0063103 (patch) | |
tree | e0097b0f4fb0194d233d1d9f58bf8570815873c3 /Python/dynload_stub.c | |
parent | fdfbf781140f22619b0ef6bfeac792496774bb69 (diff) | |
download | cpython-git-e7bf86cd7d7c9a3924501875a08c4ef4a0063103.tar.gz |
Optimize backslashreplace error handler
Issue #25318: Optimize backslashreplace and xmlcharrefreplace error handlers in
UTF-8 encoder. Optimize also backslashreplace error handler for ASCII and
Latin1 encoders.
Use the new _PyBytesWriter API to optimize these error handlers for the
encoders. It avoids to create an exception and call the slow implementation of
the error handler.
Diffstat (limited to 'Python/dynload_stub.c')
0 files changed, 0 insertions, 0 deletions