diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-06 06:45:48 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-06 06:45:48 (GMT) |
commit | 48842714b948fa239392ddd7e207151d5fcb8bc7 (patch) | |
tree | 7fd1573b10b193f735a2685bb832900608513e7d /Modules/_pickle.c | |
parent | 0e0563ca2c6d67126f33ea077ddea19af71f14eb (diff) | |
download | cpython-48842714b948fa239392ddd7e207151d5fcb8bc7.zip cpython-48842714b948fa239392ddd7e207151d5fcb8bc7.tar.gz cpython-48842714b948fa239392ddd7e207151d5fcb8bc7.tar.bz2 |
Issue #22570: Renamed Py_SETREF to Py_XSETREF.
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r-- | Modules/_pickle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c index f500038..1acf14a 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -846,7 +846,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; @@ -3089,7 +3089,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; |