diff options
author | Guido van Rossum <guido@python.org> | 2001-01-22 15:29:14 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-01-22 15:29:14 (GMT) |
commit | a120ffcf1245d8abb8ecc6984a8f4aad61ab5af4 (patch) | |
tree | a37f7bbdea43de66fd98c7a3b8c4235b896b3b15 /Modules/regexmodule.c | |
parent | 31584cb43d1cb8b393b110ef0b994fd431d7dbb6 (diff) | |
download | cpython-a120ffcf1245d8abb8ecc6984a8f4aad61ab5af4.zip cpython-a120ffcf1245d8abb8ecc6984a8f4aad61ab5af4.tar.gz cpython-a120ffcf1245d8abb8ecc6984a8f4aad61ab5af4.tar.bz2 |
SF Patch #103185, by jlt63: Some more standard modules cleanup for Cygwin
Diffstat (limited to 'Modules/regexmodule.c')
-rw-r--r-- | Modules/regexmodule.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c index da1fc3e..8509f48 100644 --- a/Modules/regexmodule.c +++ b/Modules/regexmodule.c @@ -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); |