Skip to content
This repository was archived by the owner on Dec 21, 2022. It is now read-only.

Conversation

@kr0p07k1n
Copy link

Python 3.10 deprecated collections classes generic in favour of collections.abc.

@oDn
Copy link

oDn commented Nov 29, 2021

Are these changes backward compatible with older versions of Python ?

@kr0p07k1n
Copy link
Author

Yes these changes are backward compatible with older versions of Python. The try except block ensures that, if importing collections.abc fails, it falls back on the older import of collections.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants