Skip to content

Support Python 3.10#18

Merged
ivg merged 1 commit intoBinaryAnalysisPlatform:masterfrom
gmacon:python-3.10-collections
Jan 24, 2023
Merged

Support Python 3.10#18
ivg merged 1 commit intoBinaryAnalysisPlatform:masterfrom
gmacon:python-3.10-collections

Conversation

@gmacon
Copy link
Copy Markdown
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
Copy Markdown
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