From e932e9cb9e2cb0b1c004ef395c2d4bc1766261a8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 27 Oct 2011 04:28:09 +0000 Subject: Use consistent naming. --- lv2specgen/lv2specgen.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lv2specgen') diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 2cda497..6f724b7 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -123,7 +123,7 @@ def niceName(uri): return uri -def return_name(m, urinode): +def termName(m, urinode): "Trims the namespace out of a term to give a name to the term." return str(urinode.uri).replace(spec_ns_str, "") @@ -475,7 +475,7 @@ def docTerms(category, list, m): doc = "" nspre = spec_pre for item in list: - t = return_name(m, item) + t = termName(m, item) if (t.startswith(spec_ns_str)) and ( len(t[len(spec_ns_str):].split("/")) < 2): term = t @@ -571,7 +571,7 @@ def buildIndex(m, classlist, proplist, instalist=None): if not isEnd(findStatements(m, c, rdfs.subClassOf, None)): continue shown[c] = True - name = return_name(m, c) + name = termName(m, c) if name.startswith(spec_ns_str): name = name.split(spec_ns_str[-1])[1] azlist += '
  • %s' % (name, name) @@ -582,7 +582,7 @@ def buildIndex(m, classlist, proplist, instalist=None): if not isEnd(statements): tree += '