summaryrefslogtreecommitdiff
path: root/src/buildstream/_loader
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-07 18:53:57 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:02 +0000
commit88e24fa868a417c60867216404a0d04be2b173b3 (patch)
tree711713c4be1b91dd8df5f18225e7ff68b823a941 /src/buildstream/_loader
parent16f279ba286b4a1132a99b60caeefc69c105f580 (diff)
downloadbuildstream-88e24fa868a417c60867216404a0d04be2b173b3.tar.gz
_yaml: Introduce a 'Mapping' Node class
This allows us to specialize the base 'Node' class to store mappings (dicts) more efficiently.
Diffstat (limited to 'src/buildstream/_loader')
-rw-r--r--src/buildstream/_loader/types.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_loader/types.pyx b/src/buildstream/_loader/types.pyx
index da33d6c54..c100b77b2 100644
--- a/src/buildstream/_loader/types.pyx
+++ b/src/buildstream/_loader/types.pyx
@@ -77,7 +77,7 @@ cdef class Dependency:
self.dep_type = default_dep_type
self.junction = None
- elif type(dep) is _yaml.Node and type(dep.value) is dict:
+ elif type(dep) is _yaml.MappingNode:
if default_dep_type:
_yaml.node_validate(<_yaml.Node> dep, ['filename', 'junction'])
dep_type = default_dep_type