mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
remove old undocumented compat interfaces in hashlib and pwd #5881
This commit is contained in:
parent
ec75312eaa
commit
e04b627a11
5 changed files with 6 additions and 16 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue