parent
5fad1e4a16
commit
cd9eddb418
@ -1 +1 @@
|
||||
SHA512 (zbar-0.23.tar.bz2) = 7eef2ee99760edd693ecc12a36e04b71a156b93b4c1977ca4f6da103a955284cf640b55adb185477e1d4cc65345bb01608ed9528f6518abb514ccbc58e5d350b
|
||||
SHA512 (zbar-0.23.90.tar.bz2) = c4ccac8526acab4e28c6145c5cdb95b6a6c5c81b6d2f883053435794f7c351edee20abdc9599cb0de96db546f584c9479896baa87b01ad409d5e75ea8b48118c
|
||||
|
@ -1,28 +0,0 @@
|
||||
--- 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,
|
||||
};
|
||||
|
Loading…
Reference in new issue