diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2015-04-21 17:28:12 +0200 |
---|---|---|
committer | Dieter Verfaillie <dieterv@optionexplicit.be> | 2015-06-25 17:12:33 +0200 |
commit | 1645d36b30b093fa7bca7897ed25b42349b06929 (patch) | |
tree | 6eea2e4b497929133d72f3f579ceb0c7f87ef652 | |
parent | d7031e67e4c69314ec6109b1a9194400d7bb6994 (diff) | |
download | gobject-introspection-1645d36b30b093fa7bca7897ed25b42349b06929.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.
-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: |