summaryrefslogtreecommitdiff
path: root/tests/external_plugins.py
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2019-06-10 07:51:57 +0100
committerBenjamin Schubert <contact@benschubert.me>2019-06-25 21:08:50 +0100
commite62347655a5445a621701b6e13c7abd813d954c9 (patch)
treef540b7c280ae29257fa130d61fc87befa0372282 /tests/external_plugins.py
parentfe0cdcb252b880995163f24b37a7a076cdf7824a (diff)
downloadbuildstream-e62347655a5445a621701b6e13c7abd813d954c9.tar.gz
_yaml: Add 'as_str()' on ScalarNode and 'get_scalar()' on MappingNode
- 'get_scalar()' allows retrieving a scalar node from a mapping. - 'as_str()' casts a ScalarNode into a string (thus removing the node information). Both together, those replace 'node_get(mapping, key, type=str)' but also allow retrieving the 'Node' itself, which will allow in the future lazier provenance computation.
Diffstat (limited to 'tests/external_plugins.py')
0 files changed, 0 insertions, 0 deletions