summaryrefslogtreecommitdiff
path: root/Python/import.c
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2013-11-22 22:39:36 +1000
committerNick Coghlan <ncoghlan@gmail.com>2013-11-22 22:39:36 +1000
commit27e38b38ecb79431f7a7b33292399bfd6263924e (patch)
treeb1150570ca4d25e7e9a076c6101ace2480e20c5e /Python/import.c
parentf6c0fc23594858c24a38b3b8802c826c2801759f (diff)
downloadcpython-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