diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2013-11-22 22:39:36 +1000 |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2013-11-22 22:39:36 +1000 |
commit | 27e38b38ecb79431f7a7b33292399bfd6263924e (patch) | |
tree | b1150570ca4d25e7e9a076c6101ace2480e20c5e /Python/import.c | |
parent | f6c0fc23594858c24a38b3b8802c826c2801759f (diff) | |
download | cpython-27e38b38ecb79431f7a7b33292399bfd6263924e.tar.gz |
Issue #19619: Blacklist non-text codecs in method API
str.encode, bytes.decode and bytearray.decode now use an
internal API to throw LookupError for known non-text encodings,
rather than attempting the encoding or decoding operation and
then throwing a TypeError for an unexpected output type.
The latter mechanism remains in place for third party non-text
encodings.
Diffstat (limited to 'Python/import.c')
0 files changed, 0 insertions, 0 deletions