Skip to content

Commit 16c4f26

Browse files
scottgigantentamas
authored andcommitted
Import MutableMapping from collections.abc where possible
1 parent 0009651 commit 16c4f26

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

igraph/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
"""
77

88
from contextlib import contextmanager
9-
from collections import MutableMapping
9+
try:
10+
from collections.abc import MutableMapping
11+
except ImportError:
12+
from collections import MutableMapping
1013
from ctypes import c_double, sizeof
1114
from itertools import chain
1215

0 commit comments

Comments
 (0)