summaryrefslogtreecommitdiffstats
path: root/Modules/_struct.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-06 06:51:18 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-06 06:51:18 (GMT)
commitbc62af1bbe118aa678cb6fa4ecad40f7250b56de (patch)
tree785d2ad869c2c1d058bbfdc6e9af7fb7278b9d73 /Modules/_struct.c
parentaad86a6015f8d4e1e4faea07e1400152f5843443 (diff)
downloadcpython-bc62af1bbe118aa678cb6fa4ecad40f7250b56de.zip
cpython-bc62af1bbe118aa678cb6fa4ecad40f7250b56de.tar.gz
cpython-bc62af1bbe118aa678cb6fa4ecad40f7250b56de.tar.bz2
Issue #22570: Renamed Py_SETREF to Py_XSETREF.
Diffstat (limited to 'Modules/_struct.c')
-rw-r--r--Modules/_struct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c
index 196a093..50fb138 100644
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -1377,13 +1377,13 @@ s_init(PyObject *self, PyObject *args, PyObject *kwds)
if (PyString_Check(o_format)) {
Py_INCREF(o_format);
- Py_SETREF(soself->s_format, o_format);
+ Py_XSETREF(soself->s_format, o_format);
}
else if (PyUnicode_Check(o_format)) {
PyObject *str = PyUnicode_AsEncodedString(o_format, "ascii", NULL);
if (str == NULL)
return -1;
- Py_SETREF(soself->s_format, str);
+ Py_XSETREF(soself->s_format, str);
}
else {
PyErr_Format(PyExc_TypeError,