Blame SOURCES/python3.11.patch

a07c79
diff -up PyQt5_sip-12.9.1/siplib.c.py311 PyQt5_sip-12.9.1/siplib.c
a07c79
--- PyQt5_sip-12.9.1/siplib.c.py311	2022-02-01 08:29:23.000000000 -0500
a07c79
+++ PyQt5_sip-12.9.1/siplib.c	2022-03-11 20:46:19.056212494 -0500
a07c79
@@ -12750,7 +12750,14 @@ static struct _frame *sip_api_get_frame(
a07c79
 
a07c79
     while (frame != NULL && depth > 0)
a07c79
     {
a07c79
+#if PY_VERSION_HEX < 0x03090000
a07c79
         frame = frame->f_back;
a07c79
+#else
a07c79
+        frame = PyFrame_GetBack(frame);
a07c79
+
a07c79
+        /* Historically we return a borrowed reference. */
a07c79
+        Py_XDECREF(frame);
a07c79
+#endif
a07c79
         --depth;
a07c79
     }
a07c79