diff options
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r-- | Modules/_sre.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c index 8ef8c2c..829fb6b 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -2054,8 +2054,7 @@ deepcopy(PyObject** object, PyObject* memo) if (!copy) return 0; - Py_DECREF(*object); - *object = copy; + Py_SETREF(*object, copy); return 1; /* success */ } |