diff options
author | Benjamin Schubert <contact@benschubert.me> | 2019-06-18 11:05:52 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-15 14:14:03 +0000 |
commit | 8bfe8dd6ad49445c900662f304072eb20f0ff606 (patch) | |
tree | 07e04ff71c848692acb8f0f2d866449672fe0031 /src/buildstream/_variables.pyx | |
parent | 1aa0fb1fefa7e86586831a13200a92f6dd9bd3b4 (diff) | |
download | buildstream-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/_variables.pyx')
-rw-r--r-- | src/buildstream/_variables.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_variables.pyx b/src/buildstream/_variables.pyx index f1d3c2ab0..ba8338f23 100644 --- a/src/buildstream/_variables.pyx +++ b/src/buildstream/_variables.pyx @@ -121,7 +121,7 @@ cdef class Variables: # Initialize it as a string as all variables are processed as strings. # if node.get_bool('notparallel', False): - _yaml.node_set(node, 'max-jobs', str(1)) + node['max-jobs'] = str(1) cdef dict ret = {} cdef str key |