diff options
author | Victor Stinner <vstinner@python.org> | 2022-05-27 00:39:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-27 00:39:49 +0200 |
commit | 5f8c3fb99746b9a7fadd4ec24cc4025b9c5d79d0 (patch) | |
tree | 07570f1aa71c277b9d4f96cf25b50ed10b6d8e3c /Python/sysmodule.c | |
parent | efc5d37671d2b9f31850a9edaa495fadae038759 (diff) | |
download | cpython-git-5f8c3fb99746b9a7fadd4ec24cc4025b9c5d79d0.tar.gz |
gh-91924: Optimize unicode_check_encoding_errors() (#93200)
Avoid _PyCodec_Lookup() and PyCodec_LookupError() for most common
built-in encodings and error handlers to avoid creating a temporary
Unicode string object, whereas these encodings and error handlers are
known to be valid.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions