summaryrefslogtreecommitdiff
path: root/src/buildstream/_variables.pyx
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/_variables.pyx
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/_variables.pyx')
-rw-r--r--src/buildstream/_variables.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_variables.pyx b/src/buildstream/_variables.pyx
index e8f083912..f1d3c2ab0 100644
--- a/src/buildstream/_variables.pyx
+++ b/src/buildstream/_variables.pyx
@@ -127,7 +127,7 @@ cdef class Variables:
cdef str key
cdef str value
- for key in _yaml.node_keys(node):
+ for key in node.keys():
value = node.get_str(key)
ret[sys.intern(key)] = _parse_expstr(value)
return ret