Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 788703
Collapse All | Expand All

(-)a/python/enum.c (+5 lines)
Lines 76-81 enumitem_str (zbarEnumItem *self) Link Here
76
    return(self->name);
76
    return(self->name);
77
}
77
}
78
78
79
#if PY_MAJOR_VERSION < 3
80
/* tp_print was dropped on Python 3.9 */
79
static int
81
static int
80
enumitem_print (zbarEnumItem *self,
82
enumitem_print (zbarEnumItem *self,
81
                FILE *fp,
83
                FILE *fp,
Lines 83-88 enumitem_print (zbarEnumItem *self, Link Here
83
{
85
{
84
    return(self->name->ob_type->tp_print(self->name, fp, flags));
86
    return(self->name->ob_type->tp_print(self->name, fp, flags));
85
}
87
}
88
#endif
86
89
87
static PyObject*
90
static PyObject*
88
enumitem_repr (zbarEnumItem *self)
91
enumitem_repr (zbarEnumItem *self)
Lines 115-121 PyTypeObject zbarEnumItem_Type = { Link Here
115
    .tp_new         = (newfunc)enumitem_new,
118
    .tp_new         = (newfunc)enumitem_new,
116
    .tp_dealloc     = (destructor)enumitem_dealloc,
119
    .tp_dealloc     = (destructor)enumitem_dealloc,
117
    .tp_str         = (reprfunc)enumitem_str,
120
    .tp_str         = (reprfunc)enumitem_str,
121
#if PY_MAJOR_VERSION < 3
118
    .tp_print       = (printfunc)enumitem_print,
122
    .tp_print       = (printfunc)enumitem_print,
123
#endif
119
    .tp_repr        = (reprfunc)enumitem_repr,
124
    .tp_repr        = (reprfunc)enumitem_repr,
120
};
125
};
121
126

Return to bug 788703