remove old undocumented compat interfaces in hashlib and pwd #5881

This commit is contained in:
Benjamin Peterson 2009-05-04 22:25:21 +00:00
parent ec75312eaa
commit e04b627a11
5 changed files with 6 additions and 16 deletions

View file

@ -203,13 +203,12 @@ PyInit_pwd(void)
if (m == NULL)
return NULL;
if (!initialized)
if (!initialized) {
PyStructSequence_InitType(&StructPwdType,
&struct_pwd_type_desc);
initialized = 1;
}
Py_INCREF((PyObject *) &StructPwdType);
PyModule_AddObject(m, "struct_passwd", (PyObject *) &StructPwdType);
/* And for b/w compatibility (this was defined by mistake): */
PyModule_AddObject(m, "struct_pwent", (PyObject *) &StructPwdType);
initialized = 1;
return m;
}