Skip to content

Commit 623d522

Browse files
Aniketsyvstinner
andauthored
Update Objects/funcobject.c
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent a81471a commit 623d522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/funcobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,7 @@ cm_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
16481648
classmethod *cm = (classmethod *)PyType_GenericAlloc(type, 0);
16491649
if (cm == NULL)
16501650
return NULL;
1651-
cm->cm_callable = Py_NewRef(Py_None);
1651+
cm->cm_callable = Py_None;
16521652
cm->cm_dict = NULL;
16531653
return (PyObject *)cm;
16541654
}

0 commit comments

Comments
 (0)