From 454ca3f3f4a39fd8db3eb92facc6599a32511251 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Sun, 28 Apr 2019 19:41:57 -0500 Subject: [PATCH] tools: fix deprecation --- sumpy/tools.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sumpy/tools.py b/sumpy/tools.py index 863b4bb9..540208f3 100644 --- a/sumpy/tools.py +++ b/sumpy/tools.py @@ -559,10 +559,13 @@ class MatrixBlockIndexRanges(object): # Author: Raymond Hettinger # License: MIT -import collections +try: + from collections.abc import MutableSet +except ImportError: + from collections import MutableSet -class OrderedSet(collections.MutableSet): +class OrderedSet(MutableSet): def __init__(self, iterable=None): self.end = end = [] -- GitLab