Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b14ac9 commit 52a42e9Copy full SHA for 52a42e9
1 file changed
Modules/md5module.c
@@ -268,13 +268,12 @@ static PyMethodDef md5_functions[] = {
268
DL_EXPORT(void)
269
initmd5(void)
270
{
271
- PyObject *m, *d, *i;
+ PyObject *m, *d;
272
273
MD5type.ob_type = &PyType_Type;
274
m = Py_InitModule3("md5", md5_functions, module_doc);
275
d = PyModule_GetDict(m);
276
PyDict_SetItemString(d, "MD5Type", (PyObject *)&MD5type);
277
- if ( (i = PyInt_FromLong(16)) != NULL)
278
- PyDict_SetItemString(d, "digest_size", i);
+ PyModule_AddIntConstant(m, "digest_size", 16);
279
/* No need to check the error here, the caller will do that */
280
}
0 commit comments