]> granicus.if.org Git - python/commitdiff
Put docstring for getspall into same #ifdef block as function definition
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 24 Jan 2005 23:33:50 +0000 (23:33 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 24 Jan 2005 23:33:50 +0000 (23:33 +0000)
Remove C++ (C99) style comments

Modules/spwdmodule.c

index 25e74055bb25b5cea8b688f4cc7c1281745235dd..36dd2286837b451b436c2c68dc6d2a1c4639deeb 100644 (file)
@@ -121,23 +121,21 @@ static PyObject* spwd_getspnam(PyObject *self, PyObject *args)
        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();