summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Knowles <alan@akkbhome.com>2010-03-15 23:05:46 +0800
committerAlan Knowles <alan@akkbhome.com>2010-03-15 23:05:46 +0800
commitd1ac5cc32549c3824e1a89136853327e8ec03e68 (patch)
treeaf08bf2c5aa50a9e7d651bbc4c3d4493723bd24e
parenta3fef9f10af6a35f92b819bf0a828c1e2ac49e13 (diff)
downloadgobject-introspection-d1ac5cc32549c3824e1a89136853327e8ec03e68.tar.gz
Small fix to handle @attributes: .... (.....) as a parameter to a function
Previously crashed out, now just ignores the attribute
-rw-r--r--giscanner/annotationparser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index fe5e721e..c693a97d 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: