summaryrefslogtreecommitdiff
path: root/src/buildstream/_context.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-13 18:54:28 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:02 +0000
commit50335363cd49e7945567609cf8b1273576b27667 (patch)
tree4dbe6507e8c39ce37f228bb1f007f075bca6e6cf /src/buildstream/_context.py
parent95a6e2d03157da46f9056956111847989326e3db (diff)
downloadbuildstream-50335363cd49e7945567609cf8b1273576b27667.tar.gz
_yaml: Remove 'node_get' and migrate all remaining calls to new API
Diffstat (limited to 'src/buildstream/_context.py')
-rw-r--r--src/buildstream/_context.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/buildstream/_context.py b/src/buildstream/_context.py
index 331be7e3e..18257ea33 100644
--- a/src/buildstream/_context.py
+++ b/src/buildstream/_context.py
@@ -402,14 +402,13 @@ class Context():
# get_overrides():
#
# Fetch the override dictionary for the active project. This returns
- # a node loaded from YAML and as such, values loaded from the returned
- # node should be loaded using the _yaml.node_get() family of functions.
+ # a node loaded from YAML.
#
# Args:
# project_name (str): The project name
#
# Returns:
- # (dict): The overrides dictionary for the specified project
+ # (MappingNode): The overrides dictionary for the specified project
#
def get_overrides(self, project_name):
return self._project_overrides.get_mapping(project_name, default={})
@@ -493,7 +492,7 @@ class Context():
# _node_get_option_str()
#
-# Like _yaml.node_get(), but also checks value is one of the allowed option
+# Like Node.get_scalar().as_str(), but also checks value is one of the allowed option
# strings. Fetches a value from a dictionary node, and makes sure it's one of
# the pre-defined options.
#