Codebase list python-cbor / a642b92
Fix missing member m_reload on pymoduledef py3.5 version Agustin Henze 8 years ago
2 changed file(s) with 21 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 Author: Agustin Henze <tin@debian.org>
1 Bug-Debian: https://bugs.debian.org/800888
2
3 ---
4
5 --- python-cbor-0.1.24.orig/c/cbormodule.c
6 +++ python-cbor-0.1.24/c/cbormodule.c
7 @@ -1468,7 +1468,11 @@ PyInit__cbor(void)
8 modef.m_doc = NULL;
9 modef.m_size = 0;
10 modef.m_methods = CborMethods;
11 - modef.m_reload = NULL;
12 +#if PY_MINOR_VERSION >= 5
13 + modef.m_slots = NULL,
14 +#else
15 + modef.m_reload = NULL,
16 +#endif
17 modef.m_traverse = NULL;
18 modef.m_clear = NULL;
19 modef.m_free = NULL;
0 missing-member-m_reload-on-pymoduledef-py3-5.patch