commit | 942889aae29af129ff1cb38a2dc75b94b97e65e6 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Mon Sep 05 15:40:10 2016 -0700 |
committer | Victor Stinner <victor.stinner@gmail.com> | Mon Sep 05 15:40:10 2016 -0700 |
tree | d7e062189c74e11c443f20a637a8931a06d716be | |
parent | a9ab165cd272f1332333aa20565662e2c1a29468 [diff] |
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