summaryrefslogtreecommitdiff
path: root/src/buildstream/element.py
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2019-06-25 20:00:25 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:03 +0000
commited2dde6110a5f9087ff3596df9d86ba5468dcac8 (patch)
tree180e7b0b4a38c28291541b1fde5f88890361e16c /src/buildstream/element.py
parenta275c823f07fb6d737ba7288056abce1599eecec (diff)
downloadbuildstream-ed2dde6110a5f9087ff3596df9d86ba5468dcac8.tar.gz
_yaml: Remove 'node_keys' and add 'MappingNode.keys' to replace it
This mimics the dict.keys() method but returns a list instead of a dict_keys, for cython performance reasons
Diffstat (limited to 'src/buildstream/element.py')
-rw-r--r--src/buildstream/element.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index e25b387c0..8a70396be 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -2561,7 +2561,7 @@ class Element(Plugin):
def __expand_environment(self, environment):
# Resolve variables in environment value strings
final_env = {}
- for key, _ in self.node_items(environment):
+ for key in environment.keys():
final_env[key] = self.node_subst_member(environment, key)
return final_env