summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2019-06-25 21:14:40 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:03 +0000
commit1aa0fb1fefa7e86586831a13200a92f6dd9bd3b4 (patch)
tree8e675fc215ab9f1fcf8851470c95c0e2039f42ee /doc
parent42d3d8406a15cd5f6f4a7d00e298dba019a50ed6 (diff)
downloadbuildstream-1aa0fb1fefa7e86586831a13200a92f6dd9bd3b4.tar.gz
_yaml: Remove 'node_items' and add 'MappingNode.items()'
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')
-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)