mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Issue #26200: Restored more safe usages of Py_SETREF.
This commit is contained in:
parent
199e3f8b96
commit
864b63c33f
1 changed files with 3 additions and 3 deletions
|
@ -294,9 +294,9 @@ partial_setstate(partialobject *pto, PyObject *state)
|
|||
else
|
||||
Py_INCREF(dict);
|
||||
|
||||
Py_XSETREF(pto->fn, fn);
|
||||
Py_XSETREF(pto->args, fnargs);
|
||||
Py_XSETREF(pto->kw, kw);
|
||||
Py_SETREF(pto->fn, fn);
|
||||
Py_SETREF(pto->args, fnargs);
|
||||
Py_SETREF(pto->kw, kw);
|
||||
Py_XSETREF(pto->dict, dict);
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue