diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2015-04-21 17:28:12 +0200 |
---|---|---|
committer | Dieter Verfaillie <dieterv@optionexplicit.be> | 2015-06-29 16:58:18 +0200 |
commit | b8baeffb8dac32895ce575b0a7c13d39d0c996a9 (patch) | |
tree | 94a0142eee69debbefe7ec155893d77346d9c426 /giscanner/girparser.py | |
parent | bb891d97810239fc596ab70503a77a918e5658f5 (diff) | |
download | gobject-introspection-b8baeffb8dac32895ce575b0a7c13d39d0c996a9.tar.gz |
scanner: fix broken assert message
288b339edf262f1dba4e87a9faef46cc79749bd5 changed the signature from
def _parse_type_second_pass(self, parent, node, typeval):
to
def _parse_type_array_length(self, siblings, node, typeval)
but failed to change the assert statement accordingly.
Diffstat (limited to 'giscanner/girparser.py')
-rw-r--r-- | giscanner/girparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/girparser.py b/giscanner/girparser.py index d258069a..76dc5afb 100644 --- a/giscanner/girparser.py +++ b/giscanner/girparser.py @@ -489,7 +489,7 @@ class GIRParser(object): lenidx = typenode.attrib.get('length') if lenidx is not None: idx = int(lenidx) - assert idx < len(siblings), "%r %d >= %d" % (parent, idx, len(siblings)) + assert idx < len(siblings), "%r %d >= %d" % (siblings, idx, len(siblings)) if isinstance(siblings[idx], ast.Field): typeval.length_param_name = siblings[idx].name else: |