From 7768958f8691d095c7869f212cc6c2233b973228 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 5 Aug 2022 16:50:42 -0400 Subject: Fix documentation build with Python 3.7 --- scripts/lv2_build_index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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, ) -- cgit v1.2.1