Skip to content

Update MutableMapping import for Python 3.10#44

Open
jbosboom wants to merge 1 commit intotpircher-zz:masterfrom
jbosboom:py3.10-collections-abc
Open

Update MutableMapping import for Python 3.10#44
jbosboom wants to merge 1 commit intotpircher-zz:masterfrom
jbosboom:py3.10-collections-abc

Conversation

@jbosboom
Copy link

The ABCs were moved to collections.abc in Python 3.3, but aliases were in the collections module to avoid breaking code. Python 3.10 removed those aliases.

The Travis config in the repo declares compatibility with Python 3.2, which does not have collections.abc. I don't know if this package still runs on 3.2, and virtualenv doesn't support 3.2 (according to its docs, I didn't try), so I couldn't test it on 3.2. On the assumption that no one cares about 3.2 anymore, this commit does not catch ImportError and fall back to the old import.

The ABCs were moved to collections.abc in Python 3.3, but aliases were
provided in the collections module to avoid breaking code.  Python 3.10
removed those aliases.
@tpircher
Copy link

tpircher commented Nov 4, 2022

Unfortunately I have been locked out from the GitHub account; the fix is now applied to the new repository in https://github.com/tpircher/pycrc

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