DanielStutzbach / blist

A list-like type with better asymptotic performance and similar performance on small lists
Other
313 stars 35 forks source link

Deprecation warning on collections #79

Open rsheftel opened 5 years ago

rsheftel commented 5 years ago

When upgrading to Python 3.7 I know get the following deprecation warnings. It sounds like the code will stop working once Python 3.8 is released.

C:\anaconda3\lib\site-packages\blist__init.py:4 C:\anaconda3\lib\site-packages\blist\init__.py:4: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working if hasattr(collections, 'MutableSet'): # Only supported in Python 2.6+

C:\anaconda3\lib\site-packages\blist_sortedlist.py:28 C:\anaconda3\lib\site-packages\blist_sortedlist.py:28: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working class _sortedbase(collections.Sequence):

C:\anaconda3\lib\site-packages\blist_sorteddict.py:9 C:\anaconda3\lib\site-packages\blist_sorteddict.py:9: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working class KeysView(collections.KeysView, collections.Sequence):

C:\anaconda3\lib\site-packages\blist_sorteddict.py:26 C:\anaconda3\lib\site-packages\blist_sorteddict.py:26: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working class ItemsView(collections.ItemsView, collections.Sequence):

C:\anaconda3\lib\site-packages\blist_sorteddict.py:49 C:\anaconda3\lib\site-packages\blist_sorteddict.py:49: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working class ValuesView(collections.ValuesView, collections.Sequence):

C:\anaconda3\lib\site-packages\blist__init.py:8 C:\anaconda3\lib\site-packages\blist\init__.py:8: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working collections.MutableSequence.register(blist)