diff options
author | Victor Stinner <vstinner@python.org> | 2021-09-02 10:58:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-02 10:58:00 (GMT) |
commit | 19ba2122ac7313ac29207360cfa864a275b9489e (patch) | |
tree | ab34611e2b6158889cabec93f76f40c71b6ea470 /Doc/library/codecs.rst | |
parent | a8066087054417885db0a2dbdce2ddb2ac498247 (diff) | |
download | cpython-19ba2122ac7313ac29207360cfa864a275b9489e.zip cpython-19ba2122ac7313ac29207360cfa864a275b9489e.tar.gz cpython-19ba2122ac7313ac29207360cfa864a275b9489e.tar.bz2 |
bpo-37330: open() no longer accept 'U' in file mode (GH-28118)
open(), io.open(), codecs.open() and fileinput.FileInput no longer
accept "U" ("universal newline") in the file mode. This flag was
deprecated since Python 3.3.
Diffstat (limited to 'Doc/library/codecs.rst')
-rw-r--r-- | Doc/library/codecs.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index 0dcd88f..9ea689a 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -204,6 +204,9 @@ wider range of codecs when working with binary files: *buffering* has the same meaning as for the built-in :func:`open` function. It defaults to -1 which means that the default buffer size will be used. + .. versionchanged:: 3.11 + The ``'U'`` mode has been removed. + .. function:: EncodedFile(file, data_encoding, file_encoding=None, errors='strict') |