diff options
author | Guido van Rossum <guido@python.org> | 2001-01-19 00:29:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-01-19 00:29:06 (GMT) |
commit | 7150a778634e304d5aca6b708518d4ce5e71d56c (patch) | |
tree | ea541c907e23f5d362ac5316fe28a2ab7c9c816d /Modules | |
parent | 6915c4d0a8b7707e5c5b85d7a8624585d358855c (diff) | |
download | cpython-7150a778634e304d5aca6b708518d4ce5e71d56c.zip cpython-7150a778634e304d5aca6b708518d4ce5e71d56c.tar.gz cpython-7150a778634e304d5aca6b708518d4ce5e71d56c.tar.bz2 |
SF Patch #103185, by jlt63: Some more standard modules cleanup for Cygwin
Support building this as a DLL under Cygwin.
Diffstat (limited to 'Modules')
-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); } |