Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions states/helpers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from termcolor import colored
from copy import deepcopy
import collections
import collections.abc


class FlatDictDiffer(object):
Expand Down Expand Up @@ -41,7 +41,7 @@ def flatten(d, pkey='', sep='/'):
items = []
for k in d:
new = pkey + sep + k if pkey else k
if isinstance(d[k], collections.MutableMapping):
if isinstance(d[k], collections.abc.MutableMapping):
items.extend(flatten(d[k], new, sep=sep).items())
else:
items.append((sep + new, d[k]))
Expand Down