summaryrefslogtreecommitdiff
path: root/source4/pidl/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-08 15:18:24 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-08 15:18:24 +0200
commit66b529029a6d15d9d2f8cac8f863de618509a95e (patch)
tree0df4618f9acc1daf8f242e67120e1a29ccd7dd5a /source4/pidl/lib
parentad823b04dab468379c7b42a8b849bb8a310cfb69 (diff)
downloadsamba-66b529029a6d15d9d2f8cac8f863de618509a95e.tar.gz
samba-66b529029a6d15d9d2f8cac8f863de618509a95e.tar.bz2
samba-66b529029a6d15d9d2f8cac8f863de618509a95e.zip
Clearer names for singleton return types.
(This used to be commit 19d0560464304f79224a946278105edafb285453)
Diffstat (limited to 'source4/pidl/lib')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba4/Python.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/Python.pm b/source4/pidl/lib/Parse/Pidl/Samba4/Python.pm
index 2ab61e3246..acaea99f6d 100644
--- a/source4/pidl/lib/Parse/Pidl/Samba4/Python.pm
+++ b/source4/pidl/lib/Parse/Pidl/Samba4/Python.pm
@@ -369,7 +369,7 @@ sub PythonFunctionBody($$$)
$signature .= "$e->{NAME}, ";
} else {
$self->pidl("result = $py_name;");
- $signature .= "result";
+ $signature .= $e->{NAME};
}
}
}
@@ -382,11 +382,10 @@ sub PythonFunctionBody($$$)
my $conv = $self->ConvertObjectToPythonData("r", $fn->{RETURN_TYPE}, "r->out.result");
if ($result_size > 1) {
$self->pidl("PyTuple_SetItem(result, $i, $conv);");
- $signature .= "result";
} else {
$self->pidl("result = $conv;");
- $signature .= "result";
}
+ $signature .= "result";
}
if (substr($signature, -2) eq ", ") {