Author: bugman Date: Mon Apr 29 09:54:20 2013 New Revision: 19596 URL: http://svn.gna.org/viewcvs/relax?rev=19596&view=rev Log: The relax_fit C module setup() function now uses the Py_RETURN_NONE macro to terminate. This macro does exactly what the old code does anyway. Modified: trunk/target_functions/relax_fit.c Modified: trunk/target_functions/relax_fit.c URL: http://svn.gna.org/viewcvs/relax/trunk/target_functions/relax_fit.c?rev=19596&r1=19595&r2=19596&view=diff ============================================================================== --- trunk/target_functions/relax_fit.c (original) +++ trunk/target_functions/relax_fit.c Mon Apr 29 09:54:20 2013 @@ -75,9 +75,8 @@ relax_times[i] = PyFloat_AsDouble(element); } - /* Return nothing */ - Py_INCREF(Py_None); - return Py_None; + /* The macro for returning the Python None object */ + Py_RETURN_NONE; }