diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-09-05 22:40:10 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-09-05 22:40:10 (GMT) |
commit | 942889aae29af129ff1cb38a2dc75b94b97e65e6 (patch) | |
tree | d7e062189c74e11c443f20a637a8931a06d716be /Lib/test | |
parent | a9ab165cd272f1332333aa20565662e2c1a29468 (diff) | |
download | cpython-942889aae29af129ff1cb38a2dc75b94b97e65e6.zip cpython-942889aae29af129ff1cb38a2dc75b94b97e65e6.tar.gz cpython-942889aae29af129ff1cb38a2dc75b94b97e65e6.tar.bz2 |
Issue #27938: Add a fast-path for us-ascii encoding
Other changes:
* Rewrite _Py_normalize_encoding() as a C implementation of
encodings.normalize_encoding(). For example, " utf-8 " is now normalized to
"utf_8". So the fast path is now used for more name variants of the same
encoding.
* Avoid strcpy() when encoding is NULL: call directly the UTF-8 codec
Diffstat (limited to 'Lib/test')
0 files changed, 0 insertions, 0 deletions