[gobject-introspection] scanner: fix broken assert message



commit b8baeffb8dac32895ce575b0a7c13d39d0c996a9
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Tue Apr 21 17:28:12 2015 +0200

    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.

 giscanner/girparser.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/girparser.py b/giscanner/girparser.py
index d258069..76dc5af 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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]