mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #22570: Renamed Py_SETREF to Py_XSETREF.
This commit is contained in:
parent
0e0563ca2c
commit
48842714b9
37 changed files with 132 additions and 132 deletions
|
@ -969,7 +969,7 @@ _io_BytesIO___init___impl(bytesio *self, PyObject *initvalue)
|
|||
if (initvalue && initvalue != Py_None) {
|
||||
if (PyBytes_CheckExact(initvalue)) {
|
||||
Py_INCREF(initvalue);
|
||||
Py_SETREF(self->buf, initvalue);
|
||||
Py_XSETREF(self->buf, initvalue);
|
||||
self->string_size = PyBytes_GET_SIZE(initvalue);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue