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/dbmmodule.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/dbmmodule.c')
-rw-r--r-- | Modules/dbmmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/dbmmodule.c b/Modules/dbmmodule.c index 6847364..bd14df6 100644 --- a/Modules/dbmmodule.c +++ b/Modules/dbmmodule.c @@ -285,7 +285,7 @@ dbm_getattr(dbmobject *dp, char *name) } static PyTypeObject Dbmtype = { - PyObject_HEAD_INIT(&PyType_Type) + PyObject_HEAD_INIT(NULL) 0, "dbm", sizeof(dbmobject), @@ -342,6 +342,7 @@ DL_EXPORT(void) initdbm(void) { PyObject *m, *d, *s; + Dbmtype.ob_type = &PyType_Type; m = Py_InitModule("dbm", dbmmodule_methods); d = PyModule_GetDict(m); if (DbmError == NULL) |