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 unnecessary compatibility shims #72

Closed
wants to merge 1 commit into from
Closed

Remove unnecessary compatibility shims #72

wants to merge 1 commit into from

Conversation

jdufresne
Copy link
Contributor

The type bytes is available on all supported Pythons. On Python 2.7, it
is an alias for str, same as six.binary_type.

Likewise, io.BytesIO is available on all supported Pythons. It is always
a stream implementation using an in-memory bytes buffer.

Byte literals and Unicode literals are available on all supported
Pythons.

Makes the code more forward compatible with Python 3.

The type bytes is available on all supported Pythons. On Python 2.7, it
is an alias for str, same as six.binary_type.

Likewise, io.BytesIO is available on all supported Pythons. It is always
a stream implementation using an in-memory bytes buffer.

Byte literals and Unicode literals are available on all supported
Pythons.

Makes the code more forward compatible with Python 3.
@jdufresne
Copy link
Contributor Author

Rebased to resolve merge conflicts.

@jamielennox
Copy link
Owner

Just to let you know - i do appreciate the patches, i'm just not all that worried about removing old compatibility stuff until there's something we can't support.

I know they're deprecated, but i don't see keeping the code there as a support problem for now so haven't really felt the need to drop it.

@a-detiste
Copy link

May you reconsider this ?

@a-detiste
Copy link

@jdufresne

I've proposed an intermediate PR:

#246

@jamielennox
Copy link
Owner

Out of date (obviously), took the commit as part of #248.

@jdufresne jdufresne closed this Jan 21, 2024
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.

3 participants