x0rz/tweets_analyzer

Support for Python 3.10 - collections.Iterable deprecated

lcheylus opened this issue · 1 comments

With Python 3.10 (on Debian testing), I have the error Error: module 'collections' has no attribute 'Iterable'. Indeed, it seems that collections.Iterable is deprecated since Python 3.9.

After some debugging, the issue is in print_charts function.

Possible fix? vim13@b503af3

import collections
collections.Iterable = collections.abc.Iterable