[PATCH 1 of 2] osutil.c: style fix - delete trailing end-of-line spaces

Giorgos Keramidas keramida at ceid.upatras.gr
Sun Oct 7 14:00:30 CDT 2007


# HG changeset patch
# User Giorgos Keramidas <keramida at ceid.upatras.gr>
# Date 1191783396 -10800
# Node ID 37dc732e00416a50dcc9b994961acdb6ceb755ba
# Parent  719fd175181f546564564016b77ce6657f77e3a1
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);


More information about the Mercurial-devel mailing list