Group :: Development/Python3
RPM: python3-module-pygobject
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: python3.9.patch
Download
Download
diff --git a/pygobject/gobject/pygobject.c b/pygobject/gobject/pygobject.c
index 70dc89a..ee8ffdf 100644
--- a/pygobject/gobject/pygobject.c
+++ b/pygobject/gobject/pygobject.c
@@ -822,8 +822,10 @@ pygobject_inherit_slots(PyTypeObject *type, PyObject *bases, gboolean check_for_
offsetof(PyTypeObject, tp_hash),
offsetof(PyTypeObject, tp_iter),
offsetof(PyTypeObject, tp_repr),
- offsetof(PyTypeObject, tp_str),
- offsetof(PyTypeObject, tp_print) };
+ offsetof(PyTypeObject, tp_str)
+ /* tp_print was dropped on Python 3.9 */
+ // offsetof(PyTypeObject, tp_print)
+ };
int i;
/* Happens when registering gobject.GObject itself, at least. */