]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37330: open() no longer accept 'U' in file mode (GH-28118)
authorVictor Stinner <vstinner@python.org>
Thu, 2 Sep 2021 10:58:00 +0000 (12:58 +0200)
committerGitHub <noreply@github.com>
Thu, 2 Sep 2021 10:58:00 +0000 (12:58 +0200)
commit19ba2122ac7313ac29207360cfa864a275b9489e
treeab34611e2b6158889cabec93f76f40c71b6ea470
parenta8066087054417885db0a2dbdce2ddb2ac498247
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.
13 files changed:
Doc/library/codecs.rst
Doc/library/fileinput.rst
Doc/library/functions.rst
Doc/whatsnew/3.11.rst
Lib/_pyio.py
Lib/fileinput.py
Lib/imp.py
Lib/test/test_codecs.py
Lib/test/test_fileinput.py
Lib/test/test_io.py
Misc/NEWS.d/next/Core and Builtins/2021-09-02-01-28-01.bpo-37330.QDjM_l.rst [new file with mode: 0644]
Modules/_io/_iomodule.c
Modules/_io/clinic/_iomodule.c.h