projects
/
gnome.gobject-introspection
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3fef9f
)
Small fix to handle @attributes: .... (.....) as a parameter to a function
author
Alan Knowles
<alan@akkbhome.com>
Mon, 15 Mar 2010 15:05:46 +0000
(23:05 +0800)
committer
Alan Knowles
<alan@akkbhome.com>
Mon, 15 Mar 2010 15:05:46 +0000
(23:05 +0800)
Previously crashed out, now just ignores the attribute
giscanner/annotationparser.py
patch
|
blob
|
history
diff --git
a/giscanner/annotationparser.py
b/giscanner/annotationparser.py
index
fe5e721
..
c693a97
100644
(file)
--- 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: