diff options
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c index 22f94f5..0608924 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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 { |