mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +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:
commit
bdb908ea54
11 changed files with 62 additions and 105 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