]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37330: open() no longer accept 'U' in file mode (GH-16959)
authorVictor Stinner <vstinner@python.org>
Mon, 28 Oct 2019 14:40:08 +0000 (15:40 +0100)
committerGitHub <noreply@github.com>
Mon, 28 Oct 2019 14:40:08 +0000 (15:40 +0100)
commite471e72977c83664f13d041c78549140c86c92de
treefeddc2c15e7199122f6f59992de0dab8f73b6149
parent3bfc8e0fcc707d200c267ff05b052fd6a63c985a
bpo-37330: open() no longer accept 'U' in file mode (GH-16959)

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.9.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/2019-06-18-17-53-06.bpo-37330.wAvHmz.rst [new file with mode: 0644]
Modules/_io/_iomodule.c
Modules/_io/clinic/_iomodule.c.h