json-spec icon indicating copy to clipboard operation
json-spec copied to clipboard

Deprecation warnings when importing from collections

Open IanRDavies opened this issue 4 years ago • 1 comments

There are a few places where importing from collections as opposed to collections.abc raises the following deprecation warning in Python3

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

This can be fixed using the import style in json-spec/src/reference/util.py.

I will soon raise a PR using this import style everywhere.

IanRDavies avatar Nov 03 '20 14:11 IanRDavies

PR is ready to go!

IanRDavies avatar Nov 03 '20 14:11 IanRDavies