Issue #22570: Renamed Py_SETREF to Py_XSETREF.
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index c5b4ac1..0c68c54 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -436,7 +436,7 @@
         return -1;
     }
     if (result != Py_None) {
-        Py_SETREF(frame->f_trace, result);
+        Py_XSETREF(frame->f_trace, result);
     }
     else {
         Py_DECREF(result);