Blame SOURCES/python3.11.patch

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