costerwi / dwdatareader

Python module to interact with Dewesoft DWDataReaderLib shared library
MIT License
14 stars 9 forks source link

Use `Mapping` from `collections.abc` instead of `collections` #39

Closed Achilles1515 closed 3 years ago

Achilles1515 commented 3 years ago

Running the library from the latest version of Python gives the following deprecation warning:

DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
  class DWFile(collections.Mapping):

So use Mapping from the abc module instead.

costerwi commented 3 years ago

This breaks compatibility with Python <3.3. I wonder if there's a way to catch and fall back to the old collections?

Achilles1515 commented 3 years ago

@costerwi Fixed.

costerwi commented 3 years ago

Thanks