Change Python example to use SWIG_AppendOutput

This commit is contained in:
William S Fulton 2024-10-11 18:43:33 +01:00
parent 86498e46c6
commit 4516ddb8c3
1 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ extern int count(char *bytes, int len, char c);
%#endif
}
/* Return the mutated string as a new object. The SWIG_Python_AppendOutput
/* Return the mutated string as a new object. The SWIG_AppendOutput
function takes an object and appends it to the output object
to create a tuple */
@ -139,7 +139,7 @@ extern int count(char *bytes, int len, char c);
%#else
o = PyString_FromStringAndSize($1,$2);
%#endif
$result = SWIG_Python_AppendOutput($result, o, $isvoid);
$result = SWIG_AppendOutput($result, o);
free($1);
}