Kaydet (Commit) 62679968 authored tarafından Neal Norwitz's avatar Neal Norwitz

Put docstring for getspall into same #ifdef block as function definition

Remove C++ (C99) style comments
üst 93f18f6f
...@@ -121,23 +121,21 @@ static PyObject* spwd_getspnam(PyObject *self, PyObject *args) ...@@ -121,23 +121,21 @@ static PyObject* spwd_getspnam(PyObject *self, PyObject *args)
return mkspent(p); return mkspent(p);
} }
#endif /* HAVE_GETSPNAM */
#ifdef HAVE_GETSPENT
PyDoc_STRVAR(spwd_getspall__doc__, PyDoc_STRVAR(spwd_getspall__doc__,
"getspall() -> list_of_entries\n\ "getspall() -> list_of_entries\n\
Return a list of all available shadow password database entries, \ Return a list of all available shadow password database entries, \
in arbitrary order.\n\ in arbitrary order.\n\
See spwd.__doc__ for more on shadow password database entries."); See spwd.__doc__ for more on shadow password database entries.");
#endif /* HAVE_GETSPNAM */
#ifdef HAVE_GETSPENT
static PyObject * static PyObject *
spwd_getspall(PyObject *self, PyObject *args) spwd_getspall(PyObject *self, PyObject *args)
{ {
PyObject *d; PyObject *d;
struct spwd *p; struct spwd *p;
// if (!PyArg_NoArgs(args))
// return NULL;
if ((d = PyList_New(0)) == NULL) if ((d = PyList_New(0)) == NULL)
return NULL; return NULL;
setspent(); setspent();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment