pytries / datrie

Fast, efficiently stored Trie for Python. Uses libdatrie.
http://pypi.python.org/pypi/datrie/
GNU Lesser General Public License v2.1
530 stars 88 forks source link

Correct the DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated #77

Closed mnba closed 4 years ago

mnba commented 4 years ago

There is deprecation in src/datrie.pyx line 18:

from collections import MutableMapping __main__:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working

Change that to from collections.abc import MutableMapping

and the noisy warning will gone.