From 16b9fa8db30f6657fa3fb73724cc3d3f1432c16d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 23 Oct 2003 23:54:57 +0000 Subject: - 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.) --- Misc/NEWS | 4 ++++ Modules/pwdmodule.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Misc/NEWS b/Misc/NEWS index 203972d..a53fdaf 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -47,6 +47,10 @@ Core and builtins Extension modules ----------------- +- 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.) + - The xml.parsers.expat module now provides Expat 1.95.7. - socket.IPPROTO_IPV6 was added. diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c index 7e3c3ae..6bbea33 100644 --- a/Modules/pwdmodule.c +++ b/Modules/pwdmodule.c @@ -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); } -- cgit v0.12