Skip to content

Support Python 3.10 #18

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 24, 2023

Conversation

gmacon
Copy link
Contributor

@gmacon gmacon commented Jan 20, 2023

Importing the Iterable, Sequence, and Mapping ABCs directly from collections was deprecated in Python 3.3 and the aliases were removed in Python 3.10.

Based on other indications in this repository, I believe that the intent is still to support Python 2.7, so this PR attempts to import from the new location, but if it fails because the current Python is older than 3.3, falls back to the old location. If that's not the intent, I can remove these fallbacks.

Importing the Iterable, Sequence, and Mapping ABCs directly from
collections was deprecated in Python 3.3 and the aliases were removed in
Python 3.10.

Attempt to import from the new location, but if it fails because the
current Python is older than 3.3, fall back to the old location.
@ivg
Copy link
Member

ivg commented Jan 24, 2023

Thanks! Yes, back in the day it was the intent. I don't know how valid it is nowadays, but let's keep it as you propose.

@ivg ivg merged commit 0382823 into BinaryAnalysisPlatform:master Jan 24, 2023
@gmacon gmacon deleted the python-3.10-collections branch November 28, 2023 16:44
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