summaryrefslogtreecommitdiff
path: root/src/buildstream/_context.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/_context.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/_context.py')
-rw-r--r--src/buildstream/_context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_context.py b/src/buildstream/_context.py
index b55c2647a..198e7f092 100644
--- a/src/buildstream/_context.py
+++ b/src/buildstream/_context.py
@@ -268,7 +268,7 @@ class Context():
# This stops it being used in the remote service set up
remote_execution.safe_del('pull-artifact-files')
# Don't pass the remote execution settings if that was the only option
- if _yaml.node_keys(remote_execution) == []:
+ if remote_execution.keys() == []:
del defaults['remote-execution']
else:
self.pull_artifact_files = True