aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)