From: Marcelo M. <mar...@us...> - 2006-03-16 01:46:57
|
Update of /cvsroot/swig/SWIG/Source/Modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20859/Source/Modules Modified Files: python.cxx Log Message: fix misplaced code, reported by Olly Index: python.cxx =================================================================== RCS file: /cvsroot/swig/SWIG/Source/Modules/python.cxx,v retrieving revision 1.202 retrieving revision 1.203 diff -C2 -d -r1.202 -r1.203 *** python.cxx 7 Mar 2006 22:02:54 -0000 1.202 --- python.cxx 16 Mar 2006 01:46:50 -0000 1.203 *************** *** 3618,3623 **** } } else { - Append(w->code, "swig::PyObject_var args = PyTuple_New(0);\n"); if (modernargs) { Append(w->code, "swig::PyObject_var result = PyObject_Call(method, (PyObject*) args, NULL);\n"); } else { --- 3618,3623 ---- } } else { 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 { |