summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-12-27 10:38:28 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-12-27 10:38:28 (GMT)
commitbdb908ea5466bfa09869fd2e1e7f3b17fe0fb2ea (patch)
treeab1e4e4a74bd5cb976d2473b5e76e9ba74b94edb /Python/ceval.c
parent40005a7807bf2140d045c2bb8b4ef8af1e4770a0 (diff)
parent4a1e70fc31d224786a32f950edaf73c8ea9c194d (diff)
downloadcpython-bdb908ea5466bfa09869fd2e1e7f3b17fe0fb2ea.zip
cpython-bdb908ea5466bfa09869fd2e1e7f3b17fe0fb2ea.tar.gz
cpython-bdb908ea5466bfa09869fd2e1e7f3b17fe0fb2ea.tar.bz2
Issue #20440: Applied yet one patch for using Py_SETREF.
The patch is automatically generated, it replaces the code that uses Py_CLEAR.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 6f74e86..3835cbb 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -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 *