mirror of
https://github.com/python/cpython.git
synced 2025-07-12 05:45:15 +00:00
Issue #22570: Renamed Py_SETREF to Py_XSETREF.
This commit is contained in:
commit
ec39756960
50 changed files with 174 additions and 174 deletions
|
@ -884,7 +884,7 @@ update_code_filenames(PyCodeObject *co, PyObject *oldname, PyObject *newname)
|
|||
return;
|
||||
|
||||
Py_INCREF(newname);
|
||||
Py_SETREF(co->co_filename, newname);
|
||||
Py_XSETREF(co->co_filename, newname);
|
||||
|
||||
constants = co->co_consts;
|
||||
n = PyTuple_GET_SIZE(constants);
|
||||
|
@ -1330,7 +1330,7 @@ remove_importlib_frames(void)
|
|||
PyUnicode_CompareWithASCIIString(code->co_name,
|
||||
remove_frames) == 0)) {
|
||||
Py_XINCREF(next);
|
||||
Py_SETREF(*outer_link, next);
|
||||
Py_XSETREF(*outer_link, next);
|
||||
prev_link = outer_link;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue