PyModuleDef: .m_reload was replaced by .m_slots in Python 3.5

This commit is contained in:
Oliver Gasser committed 2015-12-11 12:31:40 +01:00
1 parent 1d1ef02e98
commit 8c21571d4f
1 file changed
+4
+4
View File
@@ -757,7 +757,11 @@ static struct PyModuleDef pytun_module =
.m_doc = NULL,
.m_size = -1,
.m_methods = NULL,
#if PY_MINOR_VERSION <= 4
.m_reload = NULL,
#else
.m_slots = NULL,
#endif
.m_traverse = NULL,
.m_clear = NULL,
.m_free = NULL