summaryrefslogtreecommitdiff
path: root/buildstream/buildelement.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-01-06 12:28:27 -0500
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-01-07 15:35:14 -0500
commit9d32a39677b628ba2fc3dc861aa939310303e618 (patch)
tree0f10527c2277cb6501bb53cc6f33f79a6a7fa57a /buildstream/buildelement.py
parent06ae8dd611ea75989bb558cc1706acd5f0c5f8f0 (diff)
downloadbuildstream-9d32a39677b628ba2fc3dc861aa939310303e618.tar.gz
buildelement.py: Use new node accessor utilities with variable substitution
Diffstat (limited to 'buildstream/buildelement.py')
-rw-r--r--buildstream/buildelement.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/buildstream/buildelement.py b/buildstream/buildelement.py
index ad3a6b303..2e6746ab2 100644
--- a/buildstream/buildelement.py
+++ b/buildstream/buildelement.py
@@ -24,7 +24,6 @@ implementing the most common case of element.
from collections import OrderedDict
-from . import utils
from . import Element
@@ -60,11 +59,11 @@ class BuildElement(Element):
return dictionary
def _get_commands(self, node, name):
- list_node = utils.node_get_member(node, list, name, default_value=[])
+ list_node = self.node_get_member(node, list, name, default_value=[])
commands = []
for i in range(len(list_node)):
- command = utils.node_get_list_element(node, str, name, [i])
+ command = self.node_subst_list_element(node, name, [i])
commands.append(command)
return commands