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 /Objects/listobject.c | |
parent | 72783056983f216104087b6c49d85ea273bf67c4 (diff) | |
parent | 48842714b948fa239392ddd7e207151d5fcb8bc7 (diff) | |
download | cpython-git-ec39756960def5fdd8cb0ae191429f2f8e229f55.tar.gz |
Issue #22570: Renamed Py_SETREF to Py_XSETREF.
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r-- | Objects/listobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c index 81b40ae355..7c02be7276 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -229,7 +229,7 @@ PyList_SetItem(PyObject *op, Py_ssize_t i, return -1; } p = ((PyListObject *)op) -> ob_item + i; - Py_SETREF(*p, newitem); + Py_XSETREF(*p, newitem); return 0; } @@ -735,7 +735,7 @@ list_ass_item(PyListObject *a, Py_ssize_t i, PyObject *v) if (v == NULL) return list_ass_slice(a, i, i+1, v); Py_INCREF(v); - Py_SETREF(a->ob_item[i], v); + Py_XSETREF(a->ob_item[i], v); return 0; } |