mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
SF Patch #103185, by jlt63: Some more standard modules cleanup for Cygwin
This commit is contained in:
parent
31584cb43d
commit
a120ffcf12
4 changed files with 15 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue