# HG changeset patch # User Giorgos Keramidas # Date 2007-10-07 18:56:36 # Node ID ca890c0c3f1f569241e438494d91249c80171fc7 # Parent 1d53a75ea0fc4b5a7073ba2ab6c6b9133f88fbe9 osutil.c: style fix - delete trailing end-of-line spaces diff --git a/mercurial/osutil.c b/mercurial/osutil.c --- a/mercurial/osutil.c +++ b/mercurial/osutil.c @@ -121,9 +121,9 @@ static PyObject *listdir(PyObject *self, int do_stat; char *path; int ret; - + { - static char *kwlist[] = { "path", "stat", NULL }; + static char *kwlist[] = { "path", "stat", NULL }; PyObject *statobj = NULL; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s#|O:listdir", kwlist, @@ -132,7 +132,7 @@ static PyObject *listdir(PyObject *self, do_stat = statobj && PyObject_IsTrue(statobj); } - + if ((dir = opendir(path)) == NULL) { list = PyErr_SetFromErrnoWithFilename(PyExc_OSError, path); goto bail; @@ -187,9 +187,9 @@ static PyObject *listdir(PyObject *self, py_kind = Py_None; Py_INCREF(Py_None); } - + val = PyTuple_New(do_stat ? 3 : 2); - + if (name == NULL || py_kind == NULL || val == NULL) { Py_XDECREF(name); Py_XDECREF(py_kind); @@ -208,7 +208,7 @@ static PyObject *listdir(PyObject *self, PyList_Append(list, val); Py_DECREF(val); } - + PyList_Sort(list); if (do_stat || !all_kinds) { @@ -226,7 +226,7 @@ static PyObject *listdir(PyObject *self, int kind; kind = py_kind == Py_None ? -1 : PyInt_AsLong(py_kind); - + if (kind != -1 && !do_stat) continue; @@ -240,7 +240,7 @@ static PyObject *listdir(PyObject *self, if (ctor_args == NULL) goto bail; } - + st = (struct listdir_stat *) PyObject_CallObject((PyObject *) &listdir_stat_type, ctor_args);