mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #20440: Applied yet one patch for using Py_SETREF.
The patch is automatically generated, it replaces the code that uses Py_CLEAR.
This commit is contained in:
parent
a5892abf23
commit
4a1e70fc31
11 changed files with 63 additions and 106 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue