diff options
author | Jesus Cea <jcea@jcea.es> | 2012-10-05 00:11:36 (GMT) |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2012-10-05 00:11:36 (GMT) |
commit | 14c81aba509904959a86f14ccd180f714e6b753d (patch) | |
tree | 62c6d922cd4ae226c2e076b5d3ab81c7c5d24cb5 /Modules/pwdmodule.c | |
parent | ab70e2ab3264c444ac70a1c98e869b0de0b22c4a (diff) | |
download | cpython-14c81aba509904959a86f14ccd180f714e6b753d.zip cpython-14c81aba509904959a86f14ccd180f714e6b753d.tar.gz cpython-14c81aba509904959a86f14ccd180f714e6b753d.tar.bz2 |
#16135: Removal of OS/2 support (Modules/*)
Diffstat (limited to 'Modules/pwdmodule.c')
-rw-r--r-- | Modules/pwdmodule.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c index 1e0903a..d1045af 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); |