diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-06 06:50:03 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-06 06:50:03 (GMT) |
commit | ec39756960def5fdd8cb0ae191429f2f8e229f55 (patch) | |
tree | adb8bb87ed393db602face59929660b968f452e5 /Modules/_csv.c | |
parent | 72783056983f216104087b6c49d85ea273bf67c4 (diff) | |
parent | 48842714b948fa239392ddd7e207151d5fcb8bc7 (diff) | |
download | cpython-ec39756960def5fdd8cb0ae191429f2f8e229f55.zip cpython-ec39756960def5fdd8cb0ae191429f2f8e229f55.tar.gz cpython-ec39756960def5fdd8cb0ae191429f2f8e229f55.tar.bz2 |
Issue #22570: Renamed Py_SETREF to Py_XSETREF.
Diffstat (limited to 'Modules/_csv.c')
-rw-r--r-- | Modules/_csv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c index c0be739..e01c56e 100644 --- a/Modules/_csv.c +++ b/Modules/_csv.c @@ -277,7 +277,7 @@ _set_str(const char *name, PyObject **target, PyObject *src, const char *dflt) if (PyUnicode_READY(src) == -1) return -1; Py_INCREF(src); - Py_SETREF(*target, src); + Py_XSETREF(*target, src); } } return 0; @@ -783,7 +783,7 @@ parse_process_char(ReaderObj *self, Py_UCS4 c) 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; |