From: Antoine Pitrou Date: Thu, 11 Apr 2013 19:02:20 +0000 (+0200) Subject: Fix supernumerary 's' in sys._debugmallocstats() output. X-Git-Tag: v3.4.0a1~983 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc040f099d580029852555921b3483da027326c1;p=thirdparty%2FPython%2Fcpython.git Fix supernumerary 's' in sys._debugmallocstats() output. --- dc040f099d580029852555921b3483da027326c1 diff --cc Objects/methodobject.c index 2d1f73019bb9,f0685dd60661..9944fade1089 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@@ -352,6 -343,20 +352,6 @@@ voi _PyCFunction_DebugMallocStats(FILE *out) { _PyDebugAllocatorStats(out, - "free PyCFunctionObjects", + "free PyCFunctionObject", numfree, sizeof(PyCFunctionObject)); } - -/* PyCFunction_New() is now just a macro that calls PyCFunction_NewEx(), - but it's part of the API so we need to keep a function around that - existing C extensions can call. -*/ - -#undef PyCFunction_New -PyAPI_FUNC(PyObject *) PyCFunction_New(PyMethodDef *, PyObject *); - -PyObject * -PyCFunction_New(PyMethodDef *ml, PyObject *self) -{ - return PyCFunction_NewEx(ml, self, NULL); -}