NickWaterton / Roomba980-Python

Python program and library to control iRobot Roomba 980 Vacuum Cleaner
MIT License
361 stars 103 forks source link

Fix deprecated reference to ABC collections alias #101

Closed khartuin closed 2 years ago

khartuin commented 2 years ago

Hi. I just downloaded the project and tried it on Python 3.10 and ran into an import error. Apparently, the collections.Mapping is an alias that was kept for Python 2.X backwards compatibility and is removed in 3.10 (see https://docs.python.org/3/whatsnew/3.10.html#removed).

According to the docs, it was deprecated in 3.3, so the change should be safe for 3.6+.