diff options
-rwxr-xr-x | lv2specgen/lv2specgen.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index f04a329..340aba2 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -1149,8 +1149,9 @@ def getNamespaces(m): """Return a prefix:URI dictionary of all namespaces seen during parsing""" nspaces = {} for prefix, uri in m.namespaces(): - nspaces[prefix] = uri - del nspaces['default1'] # Remove ugly default prefix added by rdflib + if not re.match('default[0-9]*', prefix): + # Skip silly default namespaces added by rdflib + nspaces[prefix] = uri return nspaces |