summaryrefslogtreecommitdiff
path: root/Modules/pwdmodule.c
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2012-10-05 02:11:36 +0200
committerJesus Cea <jcea@jcea.es>2012-10-05 02:11:36 +0200
commita983f4cd05e08c54d7b01a030989d5c0d52dc30e (patch)
tree80c00bc24a6adc9282ecb2b88f4882fdd7d4d4b0 /Modules/pwdmodule.c
parent16137c6e635671077db3a2b46dc3fa9903115a92 (diff)
downloadcpython-a983f4cd05e08c54d7b01a030989d5c0d52dc30e.tar.gz
#16135: Removal of OS/2 support (Modules/*)
Diffstat (limited to 'Modules/pwdmodule.c')
-rw-r--r--Modules/pwdmodule.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c
index 1e0903a388..d1045af11f 100644
--- a/Modules/pwdmodule.c
+++ b/Modules/pwdmodule.c
@@ -160,12 +160,8 @@ pwd_getpwall(PyObject *self)
struct passwd *p;
if ((d = PyList_New(0)) == NULL)
return NULL;
-#if defined(PYOS_OS2) && defined(PYCC_GCC)
- if ((p = getpwuid(0)) != NULL) {
-#else
setpwent();
while ((p = getpwent()) != NULL) {
-#endif
PyObject *v = mkpwent(p);
if (v == NULL || PyList_Append(d, v) != 0) {
Py_XDECREF(v);