Skip to content

bpo-37330: open() no longer accept 'U' in file mode #28118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 2, 2021
Merged

bpo-37330: open() no longer accept 'U' in file mode #28118

merged 1 commit into from
Sep 2, 2021

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 1, 2021

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.

https://bugs.python.org/issue37330

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.
@vstinner
Copy link
Member Author

vstinner commented Sep 2, 2021

@ambv: Thanks for the merge. Let's see how it goes. In the worst case, we have time before Python 3.11 final to revert it one more time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants