summaryrefslogtreecommitdiff
path: root/Python/modsupport.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-09-05 15:40:10 -0700
committerVictor Stinner <victor.stinner@gmail.com>2016-09-05 15:40:10 -0700
commit942889aae29af129ff1cb38a2dc75b94b97e65e6 (patch)
treed7e062189c74e11c443f20a637a8931a06d716be /Python/modsupport.c
parenta9ab165cd272f1332333aa20565662e2c1a29468 (diff)
downloadcpython-git-942889aae29af129ff1cb38a2dc75b94b97e65e6.tar.gz
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 'Python/modsupport.c')
0 files changed, 0 insertions, 0 deletions