• Nick Coghlan's avatar
    Close #20404: blacklist non-text encodings in io.TextIOWrapper · a9b15241
    Nick Coghlan yazdı
    - 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.
    a9b15241
codecs.h 6.33 KB