Jürg Billeter pushed to branch master at BuildStream / buildstream
Commits:
1 changed file:
Changes:
... | ... | @@ -940,7 +940,7 @@ def node_sanitize(node): |
940 | 940 |
return [node_sanitize(elt) for elt in node]
|
941 | 941 |
|
942 | 942 |
# Finally ChainMap and dict, and other Mappings need special handling
|
943 |
- if node_type in (dict, ChainMap) or isinstance(node, collections.Mapping):
|
|
943 |
+ if node_type in (dict, ChainMap) or isinstance(node, collections.abc.Mapping):
|
|
944 | 944 |
result = SanitizedDict()
|
945 | 945 |
|
946 | 946 |
key_list = [key for key, _ in node_items(node)]
|