diff options
author | David Robillard <d@drobilla.net> | 2022-08-05 16:50:42 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-05 22:02:50 -0400 |
commit | 7768958f8691d095c7869f212cc6c2233b973228 (patch) | |
tree | 898081643046e8f7743a9472d19611b312d9951e /scripts/lv2_build_index.py | |
parent | 5f35f845874911384eeaf8498d4e0120a95392dd (diff) | |
download | lv2-7768958f8691d095c7869f212cc6c2233b973228.tar.xz |
Fix documentation build with Python 3.7
Diffstat (limited to 'scripts/lv2_build_index.py')
-rwxr-xr-x | scripts/lv2_build_index.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lv2_build_index.py b/scripts/lv2_build_index.py index c0e4395..39d933c 100755 --- a/scripts/lv2_build_index.py +++ b/scripts/lv2_build_index.py @@ -62,7 +62,7 @@ def _warn(message): def _spec_target(spec, root, online=False): "Return the relative link target for a specification." - target = spec.removeprefix(root) if spec.startswith(root) else spec + target = spec.replace(root, "") if spec.startswith(root) else spec return target if online else target + ".html" @@ -144,7 +144,7 @@ def index_row(model, spec, root_uri, online): row += _spec_link_columns( spec, root_uri, - model.value(spec, doap.name, None).removeprefix("LV2 "), + model.value(spec, doap.name, None).replace("LV2 ", ""), online, ) |