aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen/lv2specgen.py
diff options
context:
space:
mode:
Diffstat (limited to 'lv2specgen/lv2specgen.py')
-rwxr-xr-xlv2specgen/lv2specgen.py4
1 files changed, 2 insertions, 2 deletions
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)