Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93f18f6 commit 6267996Copy full SHA for 6267996
1 file changed
Modules/spwdmodule.c
@@ -121,23 +121,21 @@ static PyObject* spwd_getspnam(PyObject *self, PyObject *args)
121
return mkspent(p);
122
}
123
124
+#endif /* HAVE_GETSPNAM */
125
+
126
+#ifdef HAVE_GETSPENT
127
128
PyDoc_STRVAR(spwd_getspall__doc__,
129
"getspall() -> list_of_entries\n\
130
Return a list of all available shadow password database entries, \
131
in arbitrary order.\n\
132
See spwd.__doc__ for more on shadow password database entries.");
133
-#endif /* HAVE_GETSPNAM */
-
-#ifdef HAVE_GETSPENT
134
static PyObject *
135
spwd_getspall(PyObject *self, PyObject *args)
136
{
137
PyObject *d;
138
struct spwd *p;
139
-// if (!PyArg_NoArgs(args))
140
-// return NULL;
141
if ((d = PyList_New(0)) == NULL)
142
return NULL;
143
setspent();
0 commit comments