1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 19:29:53 +03:00
aports/testing/py3-pygpgme/py3.11.patch
2022-11-24 02:50:59 +01:00

13 lines
487 B
Diff

diff --git a/src/gpgme.c b/src/gpgme.c
index 7b80c95..8bfe3e9 100644
--- a/src/gpgme.c
+++ b/src/gpgme.c
@@ -46,7 +46,7 @@ create_module(void)
#define INIT_TYPE(type) \
if (!Py_TYPE(&type)) \
- Py_TYPE(&type) = &PyType_Type; \
+ Py_SET_TYPE(&type, &PyType_Type); \
if (!type.tp_alloc) \
type.tp_alloc = PyType_GenericAlloc; \
if (!type.tp_new) \