summaryrefslogtreecommitdiff
path: root/src/buildstream/plugin.py
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2019-06-18 11:05:52 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:03 +0000
commit8bfe8dd6ad49445c900662f304072eb20f0ff606 (patch)
tree07e04ff71c848692acb8f0f2d866449672fe0031 /src/buildstream/plugin.py
parent1aa0fb1fefa7e86586831a13200a92f6dd9bd3b4 (diff)
downloadbuildstream-8bfe8dd6ad49445c900662f304072eb20f0ff606.tar.gz
_yaml: Remove 'node_set'. Now use __setitem__
- Implement __setitem__ on 'MappingNode' - Implement __setitem__ on 'SequenceNode' - Adapt all call sites to use the new calling way.
Diffstat (limited to 'src/buildstream/plugin.py')
-rw-r--r--src/buildstream/plugin.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/buildstream/plugin.py b/src/buildstream/plugin.py
index 37b9c3401..fb0516ed2 100644
--- a/src/buildstream/plugin.py
+++ b/src/buildstream/plugin.py
@@ -363,28 +363,6 @@ class Plugin():
provenance = _yaml.node_get_provenance(node, key=member_name)
return str(provenance)
- def node_set_member(self, node, key, value):
- """Set the value of a node member
- Args:
- node (node): A dictionary loaded from YAML
- key (str): The key name
- value: The value
-
- Returns:
- None
-
- Raises:
- None
-
- **Example:**
-
- .. code:: python
-
- # Set a string 'tomjon' in node[name]
- self.node_set_member(node, 'name', 'tomjon')
- """
- _yaml.node_set(node, key, value)
-
def new_empty_node(self):
"""Create an empty 'Node' object to be handled by BuildStream's core
Args: