aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-06-07 09:57:19 -0400
committerDavid Robillard <d@drobilla.net>2025-06-07 09:57:19 -0400
commit03809f07159eaa0f7a0077701f6346550ae22d6e (patch)
tree13702aae3b9d6416d2d4b2793b36ad13bd996203
parent72b19f7e74876a629bfcc351aa21b96f99a7e68e (diff)
downloadlv2-03809f07159eaa0f7a0077701f6346550ae22d6e.tar.xz
lv2specgen: Remove unnecessary global statementsHEADmain
-rwxr-xr-xlv2specgen/lv2specgen.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index 2226f43..28c1500 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -123,7 +123,6 @@ def isLiteral(n):
def niceName(uri):
- global spec_bundle
if uri.startswith(spec_ns_str):
return uri.replace(spec_ns_str, "")
elif uri == str(rdfs.seeAlso):
@@ -382,8 +381,6 @@ def endProperties(first):
def rdfsPropertyInfo(term, m):
"""Generate HTML for properties: Domain, range"""
- global classranges
- global classdomains
doc = ""
label = getLabel(m, term)
@@ -537,8 +534,6 @@ def owlRestrictionInfo(term, m):
def rdfsClassInfo(term, m):
"""Generate rdfs-type information for Classes: ranges, and domains."""
- global classranges
- global classdomains
doc = ""
label = getLabel(m, term)
@@ -900,8 +895,6 @@ def specInformation(m, ns):
and proplist. Global variables classranges and classdomains are also filled
as appropriate.
"""
- global classranges
- global classdomains
# Find the class information: Ranges, domains, and list of all names.
classtypes = [rdfs.Class, owl.Class, rdfs.Datatype]
@@ -1151,8 +1144,6 @@ def specgen(
global spec_ns_str
global spec_ns
global spec_pre
- global ns_list
- global specgendir
global linkmap
spec_bundle = "file://%s/" % os.path.abspath(os.path.dirname(specloc))