summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-10 15:05:40 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-10 15:05:40 (GMT)
commit57a01d3a0ee20ee9eea69b658c6bac0f39541625 (patch)
treecdeb89c231bbf902b59832b1b1f6dbe9a775292e /Python/errors.c
parente0805cf10ea84b44a13ad5649267edba7cb83ee9 (diff)
downloadcpython-57a01d3a0ee20ee9eea69b658c6bac0f39541625.zip
cpython-57a01d3a0ee20ee9eea69b658c6bac0f39541625.tar.gz
cpython-57a01d3a0ee20ee9eea69b658c6bac0f39541625.tar.bz2
Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 1d6e432..47d7c4b 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -311,9 +311,9 @@ finally:
--tstate->recursion_depth;
/* throw away the old exception and use the recursion error instead */
Py_INCREF(PyExc_RecursionError);
- Py_XSETREF(*exc, PyExc_RecursionError);
+ Py_SETREF(*exc, PyExc_RecursionError);
Py_INCREF(PyExc_RecursionErrorInst);
- Py_XSETREF(*val, PyExc_RecursionErrorInst);
+ Py_SETREF(*val, PyExc_RecursionErrorInst);
/* just keeping the old traceback */
return;
}