diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-27 12:36:18 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-27 12:36:18 +0200 |
commit | 4a1e70fc31d224786a32f950edaf73c8ea9c194d (patch) | |
tree | 2000711f6cd68f009e4859ce3f9e1e9fe0a1f76e /Modules/_struct.c | |
parent | a5892abf235c67cf8e75b7fcef65e6aebe701d4c (diff) | |
download | cpython-git-4a1e70fc31d224786a32f950edaf73c8ea9c194d.tar.gz |
Issue #20440: Applied yet one patch for using Py_SETREF.
The patch is automatically generated, it replaces the code that uses Py_CLEAR.
Diffstat (limited to 'Modules/_struct.c')
-rw-r--r-- | Modules/_struct.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c index b61f9f6fa9..1f1bb93ca9 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -1437,8 +1437,7 @@ s_init(PyObject *self, PyObject *args, PyObject *kwds) return -1; } - Py_CLEAR(soself->s_format); - soself->s_format = o_format; + Py_SETREF(soself->s_format, o_format); ret = prepare_s(soself); return ret; |