diff --git a/setup.py b/setup.py index 1e61b1e2..ec74525e 100644 --- a/setup.py +++ b/setup.py @@ -17,10 +17,7 @@ from setuptools import setup except ImportError: from distutils.core import setup -try: - from collections.abc import defaultdict -except ImportError: - from collections import defaultdict +from collections import defaultdict import os __version__ = None diff --git a/spinn_utilities/ordered_default_dict.py b/spinn_utilities/ordered_default_dict.py index b089550c..ec0213b4 100644 --- a/spinn_utilities/ordered_default_dict.py +++ b/spinn_utilities/ordered_default_dict.py @@ -13,10 +13,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +from collections import OrderedDict try: - from collections.abc import OrderedDict, Callable + from collections.abc import Callable except ImportError: - from collections import OrderedDict, Callable + from collections import Callable class DefaultOrderedDict(OrderedDict):