diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-10 18:05:40 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-10 18:05:40 +0300 |
commit | 3099587c099191eccc737760a8d15c7fedcd8a40 (patch) | |
tree | 3d8ca632ccec29918d50f801767a8faa12badea5 /Python/errors.c | |
parent | 309662b1b04034c676351bf40b8266d5a61817a0 (diff) | |
download | cpython-3099587c099191eccc737760a8d15c7fedcd8a40.tar.gz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/errors.c b/Python/errors.c index 1d6e432d6b..47d7c4b992 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; } |