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 /lv2specgen | |
parent | 5f35f845874911384eeaf8498d4e0120a95392dd (diff) | |
download | lv2-7768958f8691d095c7869f212cc6c2233b973228.tar.xz |
Fix documentation build with Python 3.7
Diffstat (limited to 'lv2specgen')
-rwxr-xr-x | lv2specgen/lv2specgen.py | 4 |
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) |