summaryrefslogtreecommitdiff
path: root/doc/bst2html.py
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2019-06-25 21:14:40 +0100
committerBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-27 15:08:11 +0100
commit4e66ca802766545084018441b2a2ddda81c34f2f (patch)
tree6b1c532cb502a78ca769d73c71ddbf724dad3d08 /doc/bst2html.py
parent4652bfa0cbd86bdf24dae416b75c2607e5edcd41 (diff)
downloadbuildstream-4e66ca802766545084018441b2a2ddda81c34f2f.tar.gz
_yaml: Remove 'node_items' and add 'MappingNode.items()'bschubert/node-api-keys
One difference is that 'MappingNode.items()' does not strip the provenance from scalars and lists, which ends up not affecting the code much.
Diffstat (limited to 'doc/bst2html.py')
-rwxr-xr-xdoc/bst2html.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/bst2html.py b/doc/bst2html.py
index c6dcf3673..9d178bc18 100755
--- a/doc/bst2html.py
+++ b/doc/bst2html.py
@@ -348,7 +348,8 @@ def run_session(description, tempdir, source_cache, palette, config_file, force)
# a source distribution tarball.
#
symlinks = desc.get_mapping('workaround-symlinks', default={})
- for symlink, target in _yaml.node_items(symlinks):
+ for symlink, target in symlinks.items():
+ target = target.as_str()
# Resolve real path to where symlink should be
symlink = os.path.join(desc_dir, symlink)