summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2008-10-12 19:57:14 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-10-12 19:57:14 +0000
commita9da57b96714bc693d7463e0a5b00c7a65494a1a (patch)
tree8f4107c33afff3c7328c2cb07cb0dea8d4b2069c /giscanner
parente99d1be5625128259caa700321c535c0c0dff509 (diff)
downloadgobject-introspection-a9da57b96714bc693d7463e0a5b00c7a65494a1a.tar.gz
Fix parsing transfer-ownership attribute of <return-value>
2008-10-12 Jürg Billeter <j@bitron.ch> * giscanner/girparser.py: Fix parsing transfer-ownership attribute of <return-value> svn path=/trunk/; revision=685
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/girparser.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/giscanner/girparser.py b/giscanner/girparser.py
index 16d934c7..640eaef8 100644
--- a/giscanner/girparser.py
+++ b/giscanner/girparser.py
@@ -151,10 +151,7 @@ class GIRParser(object):
returnnode = node.find(_corens('return-value'))
if not returnnode:
raise ValueError('node %r has no return-value' % (name, ))
- transfer = False
- transfer_param = returnnode.attrib.get('transfer-ownership')
- if transfer_param is not None:
- transfer = (transfer_param == '1')
+ transfer = returnnode.attrib.get('transfer-ownership')
retval = Return(self._parse_type(returnnode), transfer)
parameters_node = node.find(_corens('parameters'))
parameters = []