diff options
author | Tommi Komulainen <tko@src.gnome.org> | 2008-10-23 17:40:25 +0000 |
---|---|---|
committer | Tommi Komulainen <tko@src.gnome.org> | 2008-10-23 17:40:25 +0000 |
commit | 1389b30ba32e7b0e1ee0ddeca9e43b4dc7bbe17f (patch) | |
tree | 75800320e4831e2fa9a6ffdeb4cfae5a0401b3a2 | |
parent | 05935c0f3e197a95f9599146b056981a7932956c (diff) | |
download | gobject-introspection-1389b30ba32e7b0e1ee0ddeca9e43b4dc7bbe17f.tar.gz |
rearrange
* giscanner/glibtransformer.py (_adjust_transfer): rearrange
svn path=/trunk/; revision=794
-rw-r--r-- | giscanner/glibtransformer.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/giscanner/glibtransformer.py b/giscanner/glibtransformer.py index b666c920..c2c07754 100644 --- a/giscanner/glibtransformer.py +++ b/giscanner/glibtransformer.py @@ -799,10 +799,9 @@ class GLibTransformer(object): is_out = (param.direction != PARAM_DIRECTION_IN) else: is_out = True - if (is_out and - (param.transfer is None or param.transfer_inferred) and - is_object): - param.transfer = 'full' + if param.transfer is None or param.transfer_inferred: + if is_out and is_object: + param.transfer = 'full' def _adjust_throws(self, func): if func.parameters == []: |