UCSBarchlab/PyRTL

Import `collections.abc.Mapping`

corwin-of-amber opened this issue · 2 comments

To support newer Pythons (>= 3.9), this line:

class TraceStorage(collections.Mapping):

Should use collections.abc.Mapping instead of collections.Mapping.

If you need to support both Python 2.x and Python 3.x, you can use one of the methods proposed here:
https://stackoverflow.com/questions/53978542/how-to-use-collections-abc-from-both-python-3-8-and-python-2-7

Thanks 🚀 🎸

Think you can release a new pypi package with this fix?