SF Patch #103185, by jlt63: Some more standard modules cleanup for Cygwin

This commit is contained in:
Guido van Rossum 2001-01-22 15:29:14 +00:00
parent 31584cb43d
commit a120ffcf12
4 changed files with 15 additions and 5 deletions

View file

@ -338,7 +338,7 @@ regobj_getattr(regexobject *re, char *name)
}
static PyTypeObject Regextype = {
PyObject_HEAD_INIT(&PyType_Type)
PyObject_HEAD_INIT(NULL)
0, /*ob_size*/
"regex", /*tp_name*/
sizeof(regexobject), /*tp_size*/
@ -654,6 +654,9 @@ initregex(void)
int i;
char *s;
/* Initialize object type */
Regextype.ob_type = &PyType_Type;
m = Py_InitModule("regex", regex_global_methods);
d = PyModule_GetDict(m);