diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-06 09:50:03 +0300 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-06 09:50:03 +0300 |
| commit | ec39756960def5fdd8cb0ae191429f2f8e229f55 (patch) | |
| tree | adb8bb87ed393db602face59929660b968f452e5 /Modules/_pickle.c | |
| parent | 72783056983f216104087b6c49d85ea273bf67c4 (diff) | |
| parent | 48842714b948fa239392ddd7e207151d5fcb8bc7 (diff) | |
| download | cpython-git-ec39756960def5fdd8cb0ae191429f2f8e229f55.tar.gz | |
Issue #22570: Renamed Py_SETREF to Py_XSETREF.
Diffstat (limited to 'Modules/_pickle.c')
| -rw-r--r-- | Modules/_pickle.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c index 5c3530b962..049b737ad4 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -869,7 +869,7 @@ PyMemoTable_Set(PyMemoTable *self, PyObject *key, Py_ssize_t value) static int _Pickler_ClearBuffer(PicklerObject *self) { - Py_SETREF(self->output_buffer, + Py_XSETREF(self->output_buffer, PyBytes_FromStringAndSize(NULL, self->max_output_len)); if (self->output_buffer == NULL) return -1; @@ -3116,7 +3116,7 @@ fix_imports(PyObject **module_name, PyObject **global_name) return -1; } Py_INCREF(item); - Py_SETREF(*module_name, item); + Py_XSETREF(*module_name, item); } else if (PyErr_Occurred()) { return -1; @@ -4506,7 +4506,7 @@ Pickler_set_persid(PicklerObject *self, PyObject *value) } Py_INCREF(value); - Py_SETREF(self->pers_func, value); + Py_XSETREF(self->pers_func, value); return 0; } @@ -6955,7 +6955,7 @@ Unpickler_set_persload(UnpicklerObject *self, PyObject *value) } Py_INCREF(value); - Py_SETREF(self->pers_func, value); + Py_XSETREF(self->pers_func, value); return 0; } |
