1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 10:15:12 +03:00
aports/community/py3-bluez/py3.11.patch
2022-11-23 11:25:24 +01:00

15 lines
461 B
Diff

diff --git a/bluez/btmodule.c b/bluez/btmodule.c
index 518b723..bc9fb92 100644
--- a/bluez/btmodule.c
+++ b/bluez/btmodule.c
@@ -2975,8 +2975,8 @@ PyMODINIT_FUNC
init_bluetooth(void)
#endif
{
- Py_TYPE(&sock_type) = &PyType_Type;
- Py_TYPE(&sdp_session_type) = &PyType_Type;
+ Py_SET_TYPE(&sock_type, &PyType_Type);
+ Py_SET_TYPE(&sdp_session_type, &PyType_Type);
#if PY_MAJOR_VERSION >= 3
PyObject *m = PyModule_Create(&moduledef);
#else