diff options
| author | David Robillard <d@drobilla.net> | 2026-02-07 20:24:51 -0500 |
|---|---|---|
| committer | David Robillard <d@drobilla.net> | 2026-02-07 20:41:31 -0500 |
| commit | 3b8d0f2439d28b23c9ba309e36458e928fc2e820 (patch) | |
| tree | 376ee87bca14a8cb847f4d5d5ef3d316edf3c249 /lv2specgen/lv2specgen.py | |
| parent | 338f433b3c67ae6a62b7a2be392fb07bdb983231 (diff) | |
| download | lv2-3b8d0f2439d28b23c9ba309e36458e928fc2e820.tar.xz | |
lv2specgen: Remove unused arguments
Diffstat (limited to 'lv2specgen/lv2specgen.py')
| -rwxr-xr-x | lv2specgen/lv2specgen.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 32fd68a..f53c4dd 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -29,7 +29,6 @@ # pylint: disable=too-many-locals # pylint: disable=too-many-positional-arguments # pylint: disable=too-many-statements -# pylint: disable=unused-argument import datetime import optparse @@ -170,7 +169,7 @@ def niceName(uri): return uri -def termName(m, urinode): +def termName(urinode): "Trims the namespace out of a term to give a name to the term." return str(urinode).replace(spec_ns_str, "") @@ -762,7 +761,7 @@ def docTerms(category, termlist, m, classlist, proplist, instalist): if not term.startswith(spec_ns_str): continue - t = termName(m, term) + t = termName(term) curie = term.split(spec_ns_str[-1])[1] if t: doc += '<div class="specterm" id="%s" about="%s">' % (t, term) @@ -837,9 +836,9 @@ def buildIndex(m, classlist, proplist, instalist=None): head = "" body = "" - def termLink(m, t): + def termLink(t): if str(t).startswith(spec_ns_str): - name = termName(m, t) + name = termName(t) return '<a href="#%s">%s</a>' % (name, name) return '<a href="%s">%s</a>' % (str(t), str(t)) @@ -862,7 +861,7 @@ def buildIndex(m, classlist, proplist, instalist=None): continue shown[c] = True - body += "<li>" + termLink(m, c) + body += "<li>" + termLink(c) def class_tree(c): tree = "" @@ -873,7 +872,7 @@ def buildIndex(m, classlist, proplist, instalist=None): subclasses += [getSubject(s)] for s in sorted(subclasses): - tree += "<li>" + termLink(m, s) + tree += "<li>" + termLink(s) tree += class_tree(s) tree += "</li>" if tree != "": @@ -888,7 +887,7 @@ def buildIndex(m, classlist, proplist, instalist=None): head += '<th><a href="#ref-properties" />Properties</th>' body += "<td><ul>" for p in sorted(proplist): - body += "<li>%s</li>" % termLink(m, p) + body += "<li>%s</li>" % termLink(p) body += "</ul></td>\n" if instalist is not None and len(instalist) > 0: |