[packages/python-pycairo] - removed obsolete patch

baggins baggins at pld-linux.org
Sat Nov 27 19:27:23 CET 2021


commit 780df1e7c4980274a79e38c75ede91fdae30d620
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Nov 27 19:27:12 2021 +0100

    - removed obsolete patch

 python3.8.patch | 26 --------------------------
 1 file changed, 26 deletions(-)
---
diff --git a/python3.8.patch b/python3.8.patch
deleted file mode 100644
index c3831f5..0000000
--- a/python3.8.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From 71c81741495cdce132b6f45a0f596d70909c1e4d Mon Sep 17 00:00:00 2001
-From: Christoph Reiter <reiter.christoph at gmail.com>
-Date: Sat, 15 Jun 2019 16:07:00 +0200
-Subject: [PATCH] enum: explicitely set enum.__str__
-
-Python 3.8 has removed the int.__str__ implementation. So we don't fall
-back to object.__str__ and thus enum.__repr__ set __str__ to int.__repr__
-instead. This gives us the same behaviour with all python versions.
-
-See https://github.com/python/cpython/commit/96aeaec64738b730
----
- cairo/enums.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/cairo/enums.c b/cairo/enums.c
-index 08fbaf3..4273232 100644
---- a/cairo/enums.c
-+++ b/cairo/enums.c
-@@ -257,6 +257,7 @@ init_enums (PyObject *module) {
-     PyObject *ev;
- 
-     Pycairo_IntEnum_Type.tp_repr = (reprfunc)int_enum_repr;
-+    Pycairo_IntEnum_Type.tp_str = PYCAIRO_PyLong_Type.tp_repr;
-     Pycairo_IntEnum_Type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE;
-     Pycairo_IntEnum_Type.tp_methods = int_enum_methods;
-     Pycairo_IntEnum_Type.tp_base = &PYCAIRO_PyLong_Type;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pycairo.git/commitdiff/780df1e7c4980274a79e38c75ede91fdae30d620



More information about the pld-cvs-commit mailing list