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
commit14c81aba509904959a86f14ccd180f714e6b753d (patch)
tree62c6d922cd4ae226c2e076b5d3ab81c7c5d24cb5 /Modules/pwdmodule.c
parentab70e2ab3264c444ac70a1c98e869b0de0b22c4a (diff)
downloadcpython-git-14c81aba509904959a86f14ccd180f714e6b753d.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);