jazzband / geojson

Python bindings and utilities for GeoJSON
https://pypi.python.org/pypi/geojson/
BSD 3-Clause "New" or "Revised" License
905 stars 120 forks source link

DeprecationWarning from collections.MutableMapping on module import #118

Closed adsultana closed 5 years ago

adsultana commented 5 years ago

As of Python 3.3, MutableMapping has moved from the collections module to collections.abc. This now raises a DeprecationWarning in Python 3.7, and will stop working altogether in Python 3.8+

$ python -Wall
Python 3.7.2 (default, Dec 29 2018, 07:19:27)
[GCC 6.3.0 20170516] on linux
>>> import geojson
/tmp/.tox/test/lib/python3.7/site-packages/geojson/mapping.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import MutableMapping