diff options
author | David Robillard <d@drobilla.net> | 2011-07-22 20:28:08 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-07-22 20:28:08 +0000 |
commit | a45e50a9e94534d0055962b46fb138ce6aa3a541 (patch) | |
tree | ece612e8b9c970df381d048d2441f9cade1ccf19 | |
parent | b2158f25368029409930d69fe9bbc6dd79f0036a (diff) | |
download | lv2-a45e50a9e94534d0055962b46fb138ce6aa3a541.tar.xz |
Fix off-by-one bug that caused the last defined namespace prefix to be ignored
-rwxr-xr-x | lv2specgen/lv2specgen.py | 2 |
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: |