◐ Shell
clean mode source ↗

bpo-37330: open() no longer accept 'U' in file mode by vstinner · Pull Request #16959 · python/cpython

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.

test_fileinput: add tests for 'rU' and 'U' modes

Run make regen-all.

tirkarthi

serhiy-storchaka

@vstinner

serhiy-storchaka

@vstinner

serhiy-storchaka

@vstinner vstinner deleted the remove_open_universal2 branch

October 28, 2019 14:40

jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request

Dec 5, 2019
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.

shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request

Jan 31, 2020
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.

This was referenced

Mar 1, 2020

vstinner added a commit that referenced this pull request

Mar 4, 2020