aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-07-22 20:28:08 +0000
committerDavid Robillard <d@drobilla.net>2011-07-22 20:28:08 +0000
commita45e50a9e94534d0055962b46fb138ce6aa3a541 (patch)
treeece612e8b9c970df381d048d2441f9cade1ccf19 /lv2specgen
parentb2158f25368029409930d69fe9bbc6dd79f0036a (diff)
downloadlv2-a45e50a9e94534d0055962b46fb138ce6aa3a541.tar.xz
Fix off-by-one bug that caused the last defined namespace prefix to be ignored
Diffstat (limited to 'lv2specgen')
-rwxr-xr-xlv2specgen/lv2specgen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index 766a0f7..3bbdfcc 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -927,7 +927,7 @@ def getNamespaces(parser):
"""Return a prefix:URI dictionary of all namespaces seen during parsing"""
count = Redland.librdf_parser_get_namespaces_seen_count(parser._parser)
nspaces = {}
- for index in range(0, count - 1):
+ for index in range(0, count):
prefix = Redland.librdf_parser_get_namespaces_seen_prefix(parser._parser, index)
uri_obj = Redland.librdf_parser_get_namespaces_seen_uri(parser._parser, index)
if uri_obj is None: