mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
closes bpo-37300: Remove unnecessary Py_XINCREF in classobject.c. (GH-14120)
This commit is contained in:
parent
5600b5e1b2
commit
c83356cae2
2 changed files with 2 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ PyMethod_New(PyObject *func, PyObject *self)
|
|||
im->im_weakreflist = NULL;
|
||||
Py_INCREF(func);
|
||||
im->im_func = func;
|
||||
Py_XINCREF(self);
|
||||
Py_INCREF(self);
|
||||
im->im_self = self;
|
||||
im->vectorcall = method_vectorcall;
|
||||
_PyObject_GC_TRACK(im);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue