File python311_frame.patch of Package python-qt4

diff --git a/qpy/QtCore/qpycore_classinfo.cpp b/qpy/QtCore/qpycore_classinfo.cpp
--- a/qpy/QtCore/qpycore_classinfo.cpp
+++ b/qpy/QtCore/qpycore_classinfo.cpp
@@ -36,7 +36,11 @@ PyObject *qpycore_ClassInfo(const char *name, const char *value)
 
     // We need the frame we were called from, not the current one.
     if (frame)
+#if PY_VERSION_HEX >= 0x03090000
+        frame = PyFrame_GetBack(frame);
+#else
         frame = frame->f_back;
+#endif
 
     if (!frame)
     {
openSUSE Build Service is sponsored by