From 1aea8fb9e0ec6ac05d57e91a6be44a288589410c Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 28 Oct 2016 19:13:52 +0200 Subject: Issue #28544: Fix _asynciomodule.c on Windows PyType_Ready() sets the reference to &PyType_Type. &PyType_Type cannot be resolved at compilation time (not on Windows?). --- Modules/_asynciomodule.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c index d9419df..f606923 100644 --- a/Modules/_asynciomodule.c +++ b/Modules/_asynciomodule.c @@ -893,7 +893,7 @@ static PyGetSetDef FutureType_getsetlist[] = { static void FutureObj_dealloc(PyObject *self); static PyTypeObject FutureType = { - PyVarObject_HEAD_INIT(0, 0) + PyVarObject_HEAD_INIT(NULL, 0) "_asyncio.Future", sizeof(FutureObj), /* tp_basicsize */ .tp_dealloc = FutureObj_dealloc, @@ -1092,7 +1092,7 @@ static PyMethodDef FutureIter_methods[] = { }; static PyTypeObject FutureIterType = { - PyVarObject_HEAD_INIT(0, 0) + PyVarObject_HEAD_INIT(NULL, 0) "_asyncio.FutureIter", .tp_basicsize = sizeof(futureiterobject), .tp_itemsize = 0, @@ -1189,7 +1189,7 @@ static PyGetSetDef TaskSendMethWrapper_getsetlist[] = { }; PyTypeObject TaskSendMethWrapper_Type = { - PyVarObject_HEAD_INIT(&PyType_Type, 0) + PyVarObject_HEAD_INIT(NULL, 0) "TaskSendMethWrapper", .tp_basicsize = sizeof(TaskSendMethWrapper), .tp_itemsize = 0, @@ -1260,7 +1260,7 @@ TaskWakeupMethWrapper_dealloc(TaskWakeupMethWrapper *o) } PyTypeObject TaskWakeupMethWrapper_Type = { - PyVarObject_HEAD_INIT(&PyType_Type, 0) + PyVarObject_HEAD_INIT(NULL, 0) "TaskWakeupMethWrapper", .tp_basicsize = sizeof(TaskWakeupMethWrapper), .tp_itemsize = 0, @@ -1778,7 +1778,7 @@ static PyGetSetDef TaskType_getsetlist[] = { }; static PyTypeObject TaskType = { - PyVarObject_HEAD_INIT(0, 0) + PyVarObject_HEAD_INIT(NULL, 0) "_asyncio.Task", sizeof(TaskObj), /* tp_basicsize */ .tp_base = &FutureType, -- cgit v0.12