python/dist/src/Modules pwdmodule.c,1.37,1.38
![](https://secure.gravatar.com/avatar/4b8c6f7db617d28e88070be9eec9065c.jpg?s=120&d=mm&r=g)
Update of /cvsroot/python/python/dist/src/Modules In directory sc8-pr-cvs1:/tmp/cvs-serv12795/Modules Modified Files: pwdmodule.c Log Message: - 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.) Index: pwdmodule.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Modules/pwdmodule.c,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** pwdmodule.c 6 Dec 2002 12:48:51 -0000 1.37 --- pwdmodule.c 23 Oct 2003 23:54:57 -0000 1.38 *************** *** 185,188 **** --- 185,190 ---- 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); }
participants (1)
-
gvanrossumļ¼ users.sourceforge.net