]> granicus.if.org Git - python/commit
Close #20404: blacklist non-text encodings in io.TextIOWrapper
authorNick Coghlan <ncoghlan@gmail.com>
Tue, 4 Feb 2014 12:11:18 +0000 (22:11 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Tue, 4 Feb 2014 12:11:18 +0000 (22:11 +1000)
commita9b15241c6bdf8ac71f1dc598b7c01a20518b6a7
tree4a72ac89949ce222ffcad240b450913b0351e1ad
parent1ea4e4174ba4051d74aedb9bdc0c020d88e3588c
Close #20404: blacklist non-text encodings in io.TextIOWrapper

- io.TextIOWrapper (and hence the open() builtin) now use the
  internal codec marking system added for issue #19619
- also tweaked the C code to only look up the encoding once,
  rather than multiple times
- the existing output type checks remain in place to deal with
  unmarked third party codecs.
Include/codecs.h
Lib/_pyio.py
Lib/test/test_io.py
Misc/NEWS
Modules/_io/textio.c
Python/codecs.c