Open kr0p07k1n opened 3 years ago
Are these changes backward compatible with older versions of Python ?
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
.
Python 3.10 deprecated collections classes generic in favour of
collections.abc
.