aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-17 14:40:25 -0400
committerDavid Robillard <d@drobilla.net>2022-07-17 18:14:02 -0400
commit3cfa40c0b74f3e57184a06d2f1ec6ae92497f2db (patch)
tree41be8bf3db897e9590ca0c965f88721499e2698f
parent131eb5c530b9f0fffa54b0ba489dc2e0ff56b2ea (diff)
downloadlv2-3cfa40c0b74f3e57184a06d2f1ec6ae92497f2db.tar.xz
lv2specgen: Remove warnings on external terms
This conveniently pointed out potential issues in the LV2 documentation, but makes the tool very noisy to use on anything else. Referring to some external thing really shouldn't be treated like a warning in linked data. Preventing mistakes (where full URIs are in the output instead of the expected prefixed names) will have to be done in some other, better way (probably based on an explicitly given set of prefixes that should be documented).
-rwxr-xr-xlv2specgen/lv2specgen.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index 29f6d91..0d6522c 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -160,8 +160,6 @@ def niceName(uri):
if pref in ns_list:
return ns_list.get(pref, pref) + ":" + rez.group(2)
else:
- print("warning: prefix %s not in ns list:" % pref)
- print(ns_list)
return uri
@@ -760,7 +758,6 @@ def docTerms(category, list, m, classlist, proplist, instalist):
doc = ""
for term in list:
if not term.startswith(spec_ns_str):
- sys.stderr.write("warning: Skipping external term `%s'\n" % term)
continue
t = termName(m, term)