From 3cfa40c0b74f3e57184a06d2f1ec6ae92497f2db Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 17 Jul 2022 14:40:25 -0400 Subject: 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). --- lv2specgen/lv2specgen.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'lv2specgen/lv2specgen.py') 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) -- cgit v1.2.1