From 9d32a39677b628ba2fc3dc861aa939310303e618 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Fri, 6 Jan 2017 12:28:27 -0500 Subject: buildelement.py: Use new node accessor utilities with variable substitution --- buildstream/buildelement.py | 5 ++--- 1 file 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 -- cgit v1.2.1