diff options
author | Hai Shi <shihai1992@gmail.com> | 2019-06-16 20:19:19 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2019-06-16 20:19:19 (GMT) |
commit | c83356cae2e375324ff4a3fb5d574ebde5c827a9 (patch) | |
tree | 6c470958d38a21777b739d525987cd577d46c7d5 /Objects | |
parent | 5600b5e1b24a3491e83f1b3038a7ea047a34c0bf (diff) | |
download | cpython-c83356cae2e375324ff4a3fb5d574ebde5c827a9.zip cpython-c83356cae2e375324ff4a3fb5d574ebde5c827a9.tar.gz cpython-c83356cae2e375324ff4a3fb5d574ebde5c827a9.tar.bz2 |
closes bpo-37300: Remove unnecessary Py_XINCREF in classobject.c. (GH-14120)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/classobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index 2415ed1..f26a85c 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -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); |