From 1c7b43ea49f9ebb6797cc8ffe2507b0c031d86fc Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 14 Dec 2018 23:56:26 +0000 Subject: [PATCH] Fix deprecations in Python 3.7. --- nmigen/compat/fhdl/module.py | 2 +- nmigen/fhdl/dsl.py | 3 ++- nmigen/fhdl/xfrm.py | 3 ++- nmigen/tools.py | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/nmigen/compat/fhdl/module.py b/nmigen/compat/fhdl/module.py index 6d12e82..1b543ea 100644 --- a/nmigen/compat/fhdl/module.py +++ b/nmigen/compat/fhdl/module.py @@ -1,4 +1,4 @@ -from collections import Iterable +from collections.abc import Iterable from ...tools import flatten, deprecated from ...fhdl import dsl diff --git a/nmigen/fhdl/dsl.py b/nmigen/fhdl/dsl.py index 72323bb..8e3507b 100644 --- a/nmigen/fhdl/dsl.py +++ b/nmigen/fhdl/dsl.py @@ -1,4 +1,5 @@ -from collections import OrderedDict, Iterable +from collections import OrderedDict +from collections.abc import Iterable from contextlib import contextmanager from .ast import * diff --git a/nmigen/fhdl/xfrm.py b/nmigen/fhdl/xfrm.py index d6dbac8..35699f1 100644 --- a/nmigen/fhdl/xfrm.py +++ b/nmigen/fhdl/xfrm.py @@ -1,4 +1,5 @@ -from collections import OrderedDict, Iterable +from collections import OrderedDict +from collections.abc import Iterable from ..tools import flatten from .ast import * diff --git a/nmigen/tools.py b/nmigen/tools.py index 87b3377..0ab4638 100644 --- a/nmigen/tools.py +++ b/nmigen/tools.py @@ -1,4 +1,4 @@ -from collections import Iterable +from collections.abc import Iterable import functools import warnings -- 2.30.2