mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
- The pwd module incorrectly advertised its struct type as
struct_pwent; this has been renamed to struct_passwd. (The old name is still supported for backwards compatibility.)
This commit is contained in:
parent
50a25709f2
commit
16b9fa8db3
2 changed files with 6 additions and 0 deletions
|
@ -184,5 +184,7 @@ initpwd(void)
|
|||
|
||||
PyStructSequence_InitType(&StructPwdType, &struct_pwd_type_desc);
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue