summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-12-27 10:36:18 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-12-27 10:36:18 (GMT)
commit4a1e70fc31d224786a32f950edaf73c8ea9c194d (patch)
tree2000711f6cd68f009e4859ce3f9e1e9fe0a1f76e /Python
parenta5892abf235c67cf8e75b7fcef65e6aebe701d4c (diff)
downloadcpython-4a1e70fc31d224786a32f950edaf73c8ea9c194d.zip
cpython-4a1e70fc31d224786a32f950edaf73c8ea9c194d.tar.gz
cpython-4a1e70fc31d224786a32f950edaf73c8ea9c194d.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')
-rw-r--r--Python/ceval.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 5fa555e..786adbf 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -4410,10 +4410,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 *