summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-06-11 05:37:58 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-06-11 05:37:58 (GMT)
commit3447bee9cc195b408488e69423e9b92954977b97 (patch)
tree9756d712c022c4fd12db3076fdcf9d0404f618ec /Modules
parent1a21451b1d73b65af949193208372e86bf308411 (diff)
downloadcpython-3447bee9cc195b408488e69423e9b92954977b97.zip
cpython-3447bee9cc195b408488e69423e9b92954977b97.tar.gz
cpython-3447bee9cc195b408488e69423e9b92954977b97.tar.bz2
Fix module initialization glitches.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/md5module.c2
-rw-r--r--Modules/sha1module.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/Modules/md5module.c b/Modules/md5module.c
index c6610a6..f024b73 100644
--- a/Modules/md5module.c
+++ b/Modules/md5module.c
@@ -566,5 +566,5 @@ PyInit__md5(void)
Py_TYPE(&MD5type) = &PyType_Type;
if (PyType_Ready(&MD5type) < 0)
return NULL;
- return PyModule_Create("_md5", MD5_functions);
+ return PyModule_Create(&_md5module);
}
diff --git a/Modules/sha1module.c b/Modules/sha1module.c
index 8502264..2cbfb50 100644
--- a/Modules/sha1module.c
+++ b/Modules/sha1module.c
@@ -539,8 +539,6 @@ static struct PyModuleDef _sha1module = {
PyMODINIT_FUNC
PyInit__sha1(void)
{
- PyObject *m;
-
Py_TYPE(&SHA1type) = &PyType_Type;
if (PyType_Ready(&SHA1type) < 0)
return NULL;