Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37888283
en ru br
ALT Linux repos
S:2.28.6-alt13

Group :: Development/Python3
RPM: python3-module-pygobject

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: python3.9.patch
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. */
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin