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

@vstinner

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.