fix misplaced code, reported by Olly

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9008 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-03-16 01:46:50 +00:00
commit 1097406a52

View file

@ -3617,8 +3617,8 @@ int PYTHON::classDirectorMethod(Node *n, Node *parent, String *super) {
Printf(w->code, "swig::PyObject_var result = PyObject_CallFunctionObjArgs(method %s, NULL);\n", arglist);
}
} else {
Append(w->code, "swig::PyObject_var args = PyTuple_New(0);\n");
if (modernargs) {
Append(w->code, "swig::PyObject_var args = PyTuple_New(0);\n");
Append(w->code, "swig::PyObject_var result = PyObject_Call(method, (PyObject*) args, NULL);\n");
} else {
Printf(w->code, "swig::PyObject_var result = PyObject_CallFunction(method, NULL, NULL);\n");