mirror of https://github.com/python/cpython
SF bug #1066036: Typo about PyErr_WriteUnraisable()
This commit is contained in:
parent
83e4a146db
commit
2a216794f0
|
@ -1039,7 +1039,7 @@ my_dealloc(PyObject *obj)
|
|||
|
||||
cbresult = PyObject_CallObject(self->my_callback, NULL);
|
||||
if (cbresult == NULL)
|
||||
PyErr_WriteUnraisable();
|
||||
PyErr_WriteUnraisable(self->my_callback);
|
||||
else
|
||||
Py_DECREF(cbresult);
|
||||
|
||||
|
|
Loading…
Reference in New Issue