diff options
author | Benjamin Schubert <contact@benschubert.me> | 2019-06-18 11:05:52 +0100 |
---|---|---|
committer | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-06-28 12:23:22 +0100 |
commit | 324ae13d724ba2455edf1671db9a8fde7dd5b122 (patch) | |
tree | a1b5c6e0b05a4ee171b1dddc4e891954e5e92cda /src/buildstream/plugin.py | |
parent | 1366a4031ad0c43e25cb85e890474018490c940f (diff) | |
download | buildstream-bschubert/node-api-noset.tar.gz |
_yaml: Remove 'node_set'. Now use __setitem__bschubert/node-api-noset
- 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.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/buildstream/plugin.py b/src/buildstream/plugin.py index 400b6802a..3a6312092 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: |