[gobject-introspection] Small fix to handle @attributes: .... (.....) as a parameter to a function



commit d1ac5cc32549c3824e1a89136853327e8ec03e68
Author: Alan Knowles <alan akkbhome com>
Date:   Mon Mar 15 23:05:46 2010 +0800

    Small fix to handle @attributes:  .... (.....)  as a parameter to a function
    
    Previously crashed out, now just ignores the attribute

 giscanner/annotationparser.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index fe5e721..c693a97 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -753,7 +753,8 @@ class AnnotationApplier(object):
         if annos_tag is None:
             return
         for key, value in annos_tag.options.iteritems():
-            node.attributes.append((key, value.one()))
+            if value:
+                node.attributes.append((key, value.one()))
 
     def _parse_skip(self, node, block):
         if block is not None:



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