From: Alan Knowles Date: Mon, 15 Mar 2010 15:05:46 +0000 (+0800) Subject: Small fix to handle @attributes: .... (.....) as a parameter to a function X-Git-Tag: GOBJECT_INTROSPECTION_0_6_9~5 X-Git-Url: http://git.roojs.org/?p=gnome.gobject-introspection;a=commitdiff_plain;h=d1ac5cc32549c3824e1a89136853327e8ec03e68 Small fix to handle @attributes: .... (.....) as a parameter to a function Previously crashed out, now just ignores the attribute --- 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: