summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2009-01-11 23:49:45 +0000
committerJohan Dahlin <johan@src.gnome.org>2009-01-11 23:49:45 +0000
commit88bd0c5429be97b5921e0ed5c8381b2a6f4978dc (patch)
tree56d5b0ed26150ff98ab18b63f6198ef91500ccd8
parent13c2b8521eaa2850d4d935f5a4fe65ade60ca67e (diff)
downloadgobject-introspection-88bd0c5429be97b5921e0ed5c8381b2a6f4978dc.tar.gz
Do not override the previously set allow_none option
svn path=/branches/annotation/; revision=1014
-rw-r--r--giscanner/annotationparser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index 82ac15a5..12b6063c 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -329,7 +329,8 @@ class AnnotationApplier(object):
if not node.direction:
node.direction = self._guess_direction(node)
node.transfer = self._extract_transfer(parent, node, options)
- node.allow_none = 'allow-none' in options
+ if 'allow-none' in options:
+ node.allow_none = True
assert node.transfer is not None