##// END OF EJS Templates
osutil.c: style fix - delete trailing end-of-line spaces
Giorgos Keramidas -
r5416:ca890c0c default
parent child Browse files
Show More
@@ -121,9 +121,9 b' static PyObject *listdir(PyObject *self,'
121 121 int do_stat;
122 122 char *path;
123 123 int ret;
124
124
125 125 {
126 static char *kwlist[] = { "path", "stat", NULL };
126 static char *kwlist[] = { "path", "stat", NULL };
127 127 PyObject *statobj = NULL;
128 128
129 129 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s#|O:listdir", kwlist,
@@ -132,7 +132,7 b' static PyObject *listdir(PyObject *self,'
132 132
133 133 do_stat = statobj && PyObject_IsTrue(statobj);
134 134 }
135
135
136 136 if ((dir = opendir(path)) == NULL) {
137 137 list = PyErr_SetFromErrnoWithFilename(PyExc_OSError, path);
138 138 goto bail;
@@ -187,9 +187,9 b' static PyObject *listdir(PyObject *self,'
187 187 py_kind = Py_None;
188 188 Py_INCREF(Py_None);
189 189 }
190
190
191 191 val = PyTuple_New(do_stat ? 3 : 2);
192
192
193 193 if (name == NULL || py_kind == NULL || val == NULL) {
194 194 Py_XDECREF(name);
195 195 Py_XDECREF(py_kind);
@@ -208,7 +208,7 b' static PyObject *listdir(PyObject *self,'
208 208 PyList_Append(list, val);
209 209 Py_DECREF(val);
210 210 }
211
211
212 212 PyList_Sort(list);
213 213
214 214 if (do_stat || !all_kinds) {
@@ -226,7 +226,7 b' static PyObject *listdir(PyObject *self,'
226 226 int kind;
227 227
228 228 kind = py_kind == Py_None ? -1 : PyInt_AsLong(py_kind);
229
229
230 230 if (kind != -1 && !do_stat)
231 231 continue;
232 232
@@ -240,7 +240,7 b' static PyObject *listdir(PyObject *self,'
240 240 if (ctor_args == NULL)
241 241 goto bail;
242 242 }
243
243
244 244 st = (struct listdir_stat *)
245 245 PyObject_CallObject((PyObject *) &listdir_stat_type,
246 246 ctor_args);
General Comments 0
You need to be logged in to leave comments. Login now