From 1097406a52c4e2b3940645f2959d5e4bfa4cd365 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Thu, 16 Mar 2006 01:46:50 +0000 Subject: [PATCH] fix misplaced code, reported by Olly git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9008 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/python.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SWIG/Source/Modules/python.cxx b/SWIG/Source/Modules/python.cxx index 8223054db..9c1c0d8ee 100644 --- a/SWIG/Source/Modules/python.cxx +++ b/SWIG/Source/Modules/python.cxx @@ -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");