Thanks to visit codestin.com
Credit goes to github.com

Skip to content

try collections.abc instead of collections for Python >= 3.4 #246

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
Jan 5, 2022

Conversation

chombourger
Copy link
Contributor

Kill a depreciation warning by importing "collections.abc" and
fallback to "collections" on failure in order to maintain support
for older versions of Python.

Fixes: #231
Signed-off-by: Cedric Hombourger [email protected]

Kill a depreciation warning by importing "collections.abc" and
fallback to "collections" on failure in order to maintain support
for older versions of Python.

Fixes: 0rpc#231
Signed-off-by: Cedric Hombourger <[email protected]>
@bombela
Copy link
Member

bombela commented Jan 5, 2022

I don't get how the people behind python decide to breaks backward compatiblity like that. It's insulting really.

@bombela bombela merged commit 465cf16 into 0rpc:master Jan 5, 2022
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.

Importing ABC directly from collections was deprecated and will be removed in Python 3.10
2 participants