[Python-checkins] python/dist/src/Modules spwdmodule.c,1.1,1.2
nnorwitz at users.sourceforge.net
nnorwitz at users.sourceforge.net
Tue Jan 25 00:34:03 CET 2005
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11382/Modules
Modified Files:
spwdmodule.c
Log Message:
Put docstring for getspall into same #ifdef block as function definition
Remove C++ (C99) style comments
Index: spwdmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/spwdmodule.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- spwdmodule.c 23 Jan 2005 09:27:24 -0000 1.1
+++ spwdmodule.c 24 Jan 2005 23:33:51 -0000 1.2
@@ -121,23 +121,21 @@
return mkspent(p);
}
+#endif /* HAVE_GETSPNAM */
+
+#ifdef HAVE_GETSPENT
+
PyDoc_STRVAR(spwd_getspall__doc__,
"getspall() -> list_of_entries\n\
Return a list of all available shadow password database entries, \
in arbitrary order.\n\
See spwd.__doc__ for more on shadow password database entries.");
-#endif /* HAVE_GETSPNAM */
-
-#ifdef HAVE_GETSPENT
-
static PyObject *
spwd_getspall(PyObject *self, PyObject *args)
{
PyObject *d;
struct spwd *p;
-// if (!PyArg_NoArgs(args))
-// return NULL;
if ((d = PyList_New(0)) == NULL)
return NULL;
setspent();
More information about the Python-checkins
mailing list