mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Issue #20440: Applied yet one patch for using Py_SETREF.
The patch is automatically generated, it replaces the code that uses Py_CLEAR.
This commit is contained in:
commit
bdb908ea54
11 changed files with 62 additions and 105 deletions
|
@ -4474,10 +4474,8 @@ _PyEval_SetCoroutineWrapper(PyObject *wrapper)
|
|||
{
|
||||
PyThreadState *tstate = PyThreadState_GET();
|
||||
|
||||
Py_CLEAR(tstate->coroutine_wrapper);
|
||||
|
||||
Py_XINCREF(wrapper);
|
||||
tstate->coroutine_wrapper = wrapper;
|
||||
Py_SETREF(tstate->coroutine_wrapper, wrapper);
|
||||
}
|
||||
|
||||
PyObject *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue