summaryrefslogtreecommitdiff
path: root/src/buildstream/node.pyx
diff options
context:
space:
mode:
authorDarius Makovsky <traveltissues@protonmail.com>2019-09-03 16:24:45 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-09-04 10:13:48 +0000
commit15ae343800a356cd7661bde550cfae6a5934e3d0 (patch)
tree8b5d2d627d0f2113ada7dc1ce7ff4e88e8c6f2bc /src/buildstream/node.pyx
parentd305c5b6ff251461370315618c5efd495f766e6c (diff)
downloadbuildstream-15ae343800a356cd7661bde550cfae6a5934e3d0.tar.gz
Fix typo in node attribute
closes #1118
Diffstat (limited to 'src/buildstream/node.pyx')
-rw-r--r--src/buildstream/node.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/node.pyx b/src/buildstream/node.pyx
index b39d01db6..89bb18eaf 100644
--- a/src/buildstream/node.pyx
+++ b/src/buildstream/node.pyx
@@ -1265,7 +1265,7 @@ cdef class SequenceNode(Node):
if type(value) is not MappingNode:
provenance = self.get_provenance()
- path = ["[{}]".format(p) for p in provenance.toplevel._find(self)] + ["[{}]".format(index)]
+ path = ["[{}]".format(p) for p in provenance._toplevel._find(self)] + ["[{}]".format(index)]
raise LoadError("{}: Value of '{}' is not of the expected type '{}'"
.format(provenance, path, MappingNode.__name__),
LoadErrorReason.INVALID_DATA)
@@ -1325,7 +1325,7 @@ cdef class SequenceNode(Node):
if type(value) is not ScalarNode:
provenance = self.get_provenance()
- path = ["[{}]".format(p) for p in provenance.toplevel._find(self)] + ["[{}]".format(index)]
+ path = ["[{}]".format(p) for p in provenance._toplevel._find(self)] + ["[{}]".format(index)]
raise LoadError("{}: Value of '{}' is not of the expected type '{}'"
.format(provenance, path, ScalarNode.__name__),
LoadErrorReason.INVALID_DATA)