summaryrefslogtreecommitdiff
path: root/doc/bst2html.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-07-16 18:31:19 +0100
committerBenjamin Schubert <ben.c.schubert@gmail.com>2019-07-16 18:32:48 +0100
commitf2ece705b7bf36d7d923264af2b1f51b66a9f9a7 (patch)
tree7df4a79b12013f6094371e86bcf52bb6aa8719e7 /doc/bst2html.py
parentfbb8eea8334023e30c8719cb52f9b0e226b4eb8b (diff)
downloadbuildstream-bschubert/api-improvements.tar.gz
node: Add 'get_str_list' on 'MappingNode'bschubert/api-improvements
`mapping.get_sequence(...).as_str_list()` is a very common pattern seen both in plugins and the core. Adding a helper to reduce the number of operations will make usage smoother
Diffstat (limited to 'doc/bst2html.py')
-rwxr-xr-xdoc/bst2html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/bst2html.py b/doc/bst2html.py
index 71d497eda..b3204b8d8 100755
--- a/doc/bst2html.py
+++ b/doc/bst2html.py
@@ -368,7 +368,7 @@ def run_session(description, tempdir, source_cache, palette, config_file, force)
# not a source distribution, no need to complain
pass
- remove_files = desc.get_sequence('remove-files', default=[]).as_str_list()
+ remove_files = desc.get_str_list('remove-files', default=[])
for remove_file in remove_files:
remove_file = os.path.join(desc_dir, remove_file)
remove_file = os.path.realpath(remove_file)