X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..74b0216f3af83142db6f496a71a25f66ea04bfac:/wxPython/wxSWIG/Modules/python.cxx diff --git a/wxPython/wxSWIG/Modules/python.cxx b/wxPython/wxSWIG/Modules/python.cxx index 8d26c6f8f2..9abad191f2 100644 --- a/wxPython/wxSWIG/Modules/python.cxx +++ b/wxPython/wxSWIG/Modules/python.cxx @@ -1071,7 +1071,7 @@ void PYTHON::create_function(char *name, char *iname, DataType *d, ParmList *l) func << tab4 << "\"\"\"" << add_docstring(doc_entry) << "\"\"\"\n"; } - func << tab4 << "val = apply(" << module << "." << iname << ",_args,_kwargs)\n"; + func << tab4 << "val = " << module << "." << iname << "(*_args,**_kwargs)\n"; if (munge_return) { // If the output of this object has been remapped in any way, we're