pidl/Python: remove todo handling from PythonFunction(), it's done by the caller
[kai/samba.git] / pidl / lib / Parse / Pidl / Samba4 / Python.pm
index bc56f17fea0d353207e45eed96b1e802fc8c5d62..e9c9567eb2f98d7e1f5a50627d5f9aed1f7387eb 100644 (file)
@@ -531,22 +531,13 @@ sub PythonFunction($$$)
        my $fnname = "py_$fn->{NAME}";
        my $docstring = $self->DocString($fn, $fn->{NAME});
 
-       my ($insignature, $outsignature);
-       my ($infn, $outfn);
-
-       if (has_property($fn, "todo")) {
-               unless ($docstring) { $docstring = "NULL"; }
-               $infn = "NULL";
-               $outfn = "NULL";
+       my ($infn, $insignature) = $self->PythonFunctionPackIn($fn, $fnname);
+       my ($outfn, $outsignature) = $self->PythonFunctionUnpackOut($fn, $fnname);
+       my $signature = "S.$prettyname($insignature) -> $outsignature";
+       if ($docstring) {
+               $docstring = "\"$signature\\n\\n\"$docstring";
        } else {
-               ($infn, $insignature) = $self->PythonFunctionPackIn($fn, $fnname);
-               ($outfn, $outsignature) = $self->PythonFunctionUnpackOut($fn, $fnname);
-               my $signature = "S.$prettyname($insignature) -> $outsignature";
-               if ($docstring) {
-                       $docstring = "\"$signature\\n\\n\"$docstring";
-               } else {
-                       $docstring = "\"$signature\"";
-               }
+               $docstring = "\"$signature\"";
        }
 
        return ($infn, $outfn, $docstring);