Skip to content
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

Remove "U" mode from from_file's open() for 3.12 compatability. #171

Merged
merged 2 commits into from
Dec 31, 2024

Conversation

mcshlanta
Copy link
Contributor

The U file mode tells Python to read the file in "universal newlines" mode. This has been the default as of Python 3.0 and should be controlled from the newline keyword parameter which deprecated the U mode specifier.

U was removed in Python 3.12 and now causes a ValueError if used.

The "U" file mode tells Python to read the file in "universal newlines" mode.  This has been the default as of Python 3.0 and should be controlled from the newline keyword parameter which deprecated the "U" mode specifier.

"U" was removed in Python 3.12 and now causes a ValueError if used.
Remove "U" mode from from_file's open() for 3.12 compatability.
@natezb natezb merged commit a201de7 into mabuchilab:master Dec 31, 2024
1 check passed
@natezb
Copy link
Contributor

natezb commented Dec 31, 2024

Thanks!

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.

2 participants