storm icon indicating copy to clipboard operation
storm copied to clipboard

Update collections import for Python 3.10

Open kr0p07k1n opened this issue 4 years ago • 2 comments

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

kr0p07k1n avatar Oct 21 '21 02:10 kr0p07k1n

Are these changes backward compatible with older versions of Python ?

oDn avatar Nov 29 '21 17:11 oDn

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.

kr0p07k1n avatar Dec 07 '21 00:12 kr0p07k1n