diff options
-rw-r--r-- | Modules/xreadlinesmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/xreadlinesmodule.c b/Modules/xreadlinesmodule.c index 4f8b398..4cdef8a 100644 --- a/Modules/xreadlinesmodule.c +++ b/Modules/xreadlinesmodule.c @@ -84,7 +84,7 @@ static PySequenceMethods xreadlines_as_sequence = { }; static PyTypeObject XReadlinesObject_Type = { - PyObject_HEAD_INIT(&PyType_Type) + PyObject_HEAD_INIT(NULL) 0, "xreadlines", sizeof(PyXReadlinesObject) + PyGC_HEAD_SIZE, @@ -118,5 +118,6 @@ initxreadlines(void) { PyObject *m; + XReadlinesObject_Type.ob_type = &PyType_Type; m = Py_InitModule("xreadlines", xreadlines_methods); } |