diff --git a/src/pylogit/choice_tools.py b/src/pylogit/choice_tools.py index c9653d7..cf967b2 100644 --- a/src/pylogit/choice_tools.py +++ b/src/pylogit/choice_tools.py @@ -12,7 +12,7 @@ import warnings from collections import OrderedDict -from collections import Iterable +from collections.abc import Iterable from numbers import Number import numpy as np diff --git a/tests/test_bootstrap_abc.py b/tests/test_bootstrap_abc.py index 21ac35f..85a1884 100644 --- a/tests/test_bootstrap_abc.py +++ b/tests/test_bootstrap_abc.py @@ -2,7 +2,7 @@ Tests for the bootstrap_abc.py file. """ import unittest -from collections import Iterable +from collections.abc import Iterable import numpy as np import numpy.testing as npt