diff options
author | Alan Knowles <alan@akkbhome.com> | 2010-03-15 23:05:46 +0800 |
---|---|---|
committer | Alan Knowles <alan@akkbhome.com> | 2010-03-15 23:05:46 +0800 |
commit | d1ac5cc32549c3824e1a89136853327e8ec03e68 (patch) | |
tree | af08bf2c5aa50a9e7d651bbc4c3d4493723bd24e /giscanner | |
parent | a3fef9f10af6a35f92b819bf0a828c1e2ac49e13 (diff) | |
download | gobject-introspection-d1ac5cc32549c3824e1a89136853327e8ec03e68.tar.gz |
Small fix to handle @attributes: .... (.....) as a parameter to a function
Previously crashed out, now just ignores the attribute
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/annotationparser.py | 3 |
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: |