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 --- lv2specgen/lv2specgen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lv2specgen') diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 0c5a87d..5f06af3 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -148,7 +148,7 @@ def isLiteral(n): def niceName(uri): global spec_bundle if uri.startswith(spec_ns_str): - return uri.removeprefix(spec_ns_str) + return uri.replace(spec_ns_str, "") elif uri == str(rdfs.seeAlso): return "See also" @@ -823,7 +823,7 @@ def getShortName(uri): def getAnchor(uri): uri = str(uri) if uri.startswith(spec_ns_str): - return uri.removeprefix(spec_ns_str).replace("/", "_") + return uri.replace(spec_ns_str, "").replace("/", "_") else: return getShortName(uri) -- cgit v1.2.1