Skip to content

Commit a3008cf

Browse files
authored
MutableMapping is now under collections.abc (#1)
Co-authored-by: Aaron Picht <apicht@users.noreply.github.com>
1 parent 4cfb11f commit a3008cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

states/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from termcolor import colored
22
from copy import deepcopy
3-
import collections
3+
import collections.abc
44

55

66
class FlatDictDiffer(object):
@@ -41,7 +41,7 @@ def flatten(d, pkey='', sep='/'):
4141
items = []
4242
for k in d:
4343
new = pkey + sep + k if pkey else k
44-
if isinstance(d[k], collections.MutableMapping):
44+
if isinstance(d[k], collections.abc.MutableMapping):
4545
items.extend(flatten(d[k], new, sep=sep).items())
4646
else:
4747
items.append((sep + new, d[k]))

0 commit comments

Comments
 (0)