Skip to content

bpo-40937: Remove deprecated universal mode #20775

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

Closed
wants to merge 4 commits into from

Conversation

remilapeyre
Copy link
Contributor

@remilapeyre remilapeyre commented Jun 10, 2020

@@ -87,10 +87,6 @@ def open(file, mode="r", buffering=-1, encoding=None, errors=None,
returned as strings, the bytes having been first decoded using a
platform-dependent encoding or using the specified encoding if given.

'U' mode is deprecated and will raise an exception in future versions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wont let me add a comment to the line as it is too far away from the changes, but shouldn't line 74 also be removed here?

@lrjball
Copy link
Contributor

lrjball commented Jun 11, 2020

Also, should the following line in gzip also be updated?

if mode and ('t' in mode or 'U' in mode):

https://github.com/remilapeyre/cpython/blob/838a92a84813641c8a2ef936264d4ba30244d600/Lib/gzip.py#L168

@remilapeyre
Copy link
Contributor Author

Also, should the following line in gzip also be updated?

if mode and ('t' in mode or 'U' in mode):

https://github.com/remilapeyre/cpython/blob/838a92a84813641c8a2ef936264d4ba30244d600/Lib/gzip.py#L168

Yes thanks!

@iritkatriel
Copy link
Member

This has been removed in #81511

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

Successfully merging this pull request may close these issues.

5 participants