--- python/enum.c~ 2019-05-22 06:00:30.000000000 -0500 +++ python/enum.c 2020-07-20 12:29:37.468767649 -0500 @@ -76,6 +76,7 @@ return(self->name); } +#if PY_MAJOR_VERSION < 3 static int enumitem_print (zbarEnumItem *self, FILE *fp, @@ -83,6 +84,7 @@ { return(self->name->ob_type->tp_print(self->name, fp, flags)); } +#endif static PyObject* enumitem_repr (zbarEnumItem *self) @@ -115,7 +117,9 @@ .tp_new = (newfunc)enumitem_new, .tp_dealloc = (destructor)enumitem_dealloc, .tp_str = (reprfunc)enumitem_str, +#if PY_MAJOR_VERSION < 3 .tp_print = (printfunc)enumitem_print, +#endif .tp_repr = (reprfunc)enumitem_repr, };