summaryrefslogtreecommitdiffstats
path: root/Modules/pwdmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-10-23 23:54:57 (GMT)
committerGuido van Rossum <guido@python.org>2003-10-23 23:54:57 (GMT)
commit16b9fa8db30f6657fa3fb73724cc3d3f1432c16d (patch)
treea616fb75c8790623bf3397dd58de6ba811261515 /Modules/pwdmodule.c
parent50a25709f2693cbd8953d5bc0cf084ec03aa1e7b (diff)
downloadcpython-16b9fa8db30f6657fa3fb73724cc3d3f1432c16d.zip
cpython-16b9fa8db30f6657fa3fb73724cc3d3f1432c16d.tar.gz
cpython-16b9fa8db30f6657fa3fb73724cc3d3f1432c16d.tar.bz2
- 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.)
Diffstat (limited to 'Modules/pwdmodule.c')
-rw-r--r--Modules/pwdmodule.c2
1 files changed, 2 insertions, 0 deletions
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);
}