ethereum / eth-utils

Utility functions for working with ethereum related codebases.
https://eth-utils.readthedocs.io/en/latest/
MIT License
320 stars 152 forks source link

Importing ABC directly from collections was deprecated and will be removed in Python 3.10 #184

Closed tirkarthi closed 4 years ago

tirkarthi commented 4 years ago

What was wrong?

Importing ABC directly from collections was deprecated and will be removed in Python 3.10

eth_utils/types.py
32:    return isinstance(obj, collections.Mapping)
36:    return not is_string(obj) and isinstance(obj, collections.Sequence)

How can it be fixed?

Use collections.abc for Python 3