Issue #22570: Renamed Py_SETREF to Py_XSETREF.
diff --git a/Modules/_csv.c b/Modules/_csv.c
index fe85069..d6f2ca8 100644
--- a/Modules/_csv.c
+++ b/Modules/_csv.c
@@ -277,7 +277,7 @@
if (PyUnicode_READY(src) == -1)
return -1;
Py_INCREF(src);
- Py_SETREF(*target, src);
+ Py_XSETREF(*target, src);
}
}
return 0;
@@ -783,7 +783,7 @@
static int
parse_reset(ReaderObj *self)
{
- Py_SETREF(self->fields, PyList_New(0));
+ Py_XSETREF(self->fields, PyList_New(0));
if (self->fields == NULL)
return -1;
self->field_len = 0;