From 88bd0c5429be97b5921e0ed5c8381b2a6f4978dc Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Sun, 11 Jan 2009 23:49:45 +0000 Subject: Do not override the previously set allow_none option svn path=/branches/annotation/; revision=1014 --- giscanner/annotationparser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1