FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix module initialization glitches. · python-emscripten/cpython@3447bee · GitHub

Repository navigation

Commit 3447bee

Browse files
committed
Fix module initialization glitches.
1 parent 1a21451 commit 3447bee

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎Modules/md5module.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,5 +566,5 @@ PyInit__md5(void)
566566
Py_TYPE(&MD5type) = &PyType_Type;
567567
if (PyType_Ready(&MD5type) < 0)
568568
return NULL;
569-
return PyModule_Create("_md5", MD5_functions);
569+
return PyModule_Create(&_md5module);
570570
}

‎Modules/sha1module.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,6 @@ static struct PyModuleDef _sha1module = {
539539
PyMODINIT_FUNC
540540
PyInit__sha1(void)
541541
{
542-
PyObject *m;
543-
544542
Py_TYPE(&SHA1type) = &PyType_Type;
545543
if (PyType_Ready(&SHA1type) < 0)
546544
return NULL;

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL