Commit 4d575cc0 authored by Martin v. Löwis's avatar Martin v. Löwis

Fix module initialization glitches.

parent ecca9993
...@@ -566,5 +566,5 @@ PyInit__md5(void) ...@@ -566,5 +566,5 @@ PyInit__md5(void)
Py_TYPE(&MD5type) = &PyType_Type; Py_TYPE(&MD5type) = &PyType_Type;
if (PyType_Ready(&MD5type) < 0) if (PyType_Ready(&MD5type) < 0)
return NULL; return NULL;
return PyModule_Create("_md5", MD5_functions); return PyModule_Create(&_md5module);
} }
...@@ -539,8 +539,6 @@ static struct PyModuleDef _sha1module = { ...@@ -539,8 +539,6 @@ static struct PyModuleDef _sha1module = {
PyMODINIT_FUNC PyMODINIT_FUNC
PyInit__sha1(void) PyInit__sha1(void)
{ {
PyObject *m;
Py_TYPE(&SHA1type) = &PyType_Type; Py_TYPE(&SHA1type) = &PyType_Type;
if (PyType_Ready(&SHA1type) < 0) if (PyType_Ready(&SHA1type) < 0)
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment