summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildstream/_yaml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_yaml.py b/buildstream/_yaml.py
index 7e12183e3..230094c22 100644
--- a/buildstream/_yaml.py
+++ b/buildstream/_yaml.py
@@ -940,7 +940,7 @@ def node_sanitize(node):
return [node_sanitize(elt) for elt in node]
# Finally ChainMap and dict, and other Mappings need special handling
- if node_type in (dict, ChainMap) or isinstance(node, collections.Mapping):
+ if node_type in (dict, ChainMap) or isinstance(node, collections.abc.Mapping):
result = SanitizedDict()
key_list = [key for key, _ in node_items(node)]