diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-27 10:36:18 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-27 10:36:18 (GMT) |
commit | 4a1e70fc31d224786a32f950edaf73c8ea9c194d (patch) | |
tree | 2000711f6cd68f009e4859ce3f9e1e9fe0a1f76e /Python | |
parent | a5892abf235c67cf8e75b7fcef65e6aebe701d4c (diff) | |
download | cpython-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.c | 4 |
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 * |