summaryrefslogtreecommitdiff
path: root/src/buildstream/_yaml.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_yaml.pyx')
-rw-r--r--src/buildstream/_yaml.pyx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildstream/_yaml.pyx b/src/buildstream/_yaml.pyx
index 6420474eb..a142fdfcb 100644
--- a/src/buildstream/_yaml.pyx
+++ b/src/buildstream/_yaml.pyx
@@ -69,6 +69,10 @@ cdef class Node:
self.line = line
self.column = column
+ @classmethod
+ def from_dict(cls, dict value):
+ return new_node_from_dict(value)
+
cdef bint _walk_find(self, Node target, list path) except *:
raise NotImplementedError()