aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-27 04:17:38 +0000
committerDavid Robillard <d@drobilla.net>2011-10-27 04:17:38 +0000
commitb22cd1e97ebcd30fb5ba51cefc8b14b7d71446ab (patch)
tree6d5429a785399a1a9ea0887cb6ddb2fb0b2253d0 /lv2specgen
parent05a15cdcaf9bb693af3f4aeadcead5132b88911b (diff)
downloadlv2-b22cd1e97ebcd30fb5ba51cefc8b14b7d71446ab.tar.xz
Remove dead code.
Diffstat (limited to 'lv2specgen')
-rwxr-xr-xlv2specgen/lv2specgen.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index ad1ab9e..c9dd92c 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -44,7 +44,6 @@ import os
import sys
import datetime
import re
-import urllib
import xml.sax.saxutils
try:
@@ -844,14 +843,6 @@ def specgen(specloc, docdir, template, doclinks, instances=False, mode="spec"):
if instances:
termlist += docTerms('Instance', instalist, m)
- # Generate RDF from original namespace.
- u = urllib.urlopen(specloc)
- rdfdata = u.read()
- rdfdata = re.sub(r"(<\?xml version.*\?>)", "", rdfdata)
- rdfdata = re.sub(r"(<!DOCTYPE[^]]*]>)", "", rdfdata)
- #rdfdata.replace("""<?xml version="1.0"?>""", "")
-
- # print(template % (azlist.encode("utf-8"), termlist.encode("utf-8"), rdfdata.encode("ISO-8859-1")))
template = re.sub(r"^#format \w*\n", "", template)
template = re.sub(r"\$VersionInfo\$", owlVersionInfo(m).encode("utf-8"), template)