summaryrefslogtreecommitdiffstats
path: root/Modules/_pickle.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r--Modules/_pickle.c4
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;