[Python-checkins] python/dist/src/Modules pwdmodule.c,1.37,1.38
gvanrossum at users.sourceforge.net
gvanrossum at users.sourceforge.net
Thu Oct 23 19:54:59 EDT 2003
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);
}
More information about the Python-checkins
mailing list