← Back to team overview

dulwich-users team mailing list archive

[PATCH 3 of 4] _objects.c: indentation/alignment tabs/spaces pedantry

 

# HG changeset patch
# User Augie Fackler <durin42@xxxxxxxxx>
# Date 1290039442 -21600
# Node ID 130bbd3c82edb682baf86c27e0fac5b9c8acb624
# Parent  3c1445e046877f0fbdd3f47fc7b4eaf317359ba3
_objects.c: indentation/alignment tabs/spaces pedantry.

Change-Id: I53bc926f9364dcffa5dd048ef4a3d67a6e4293fa

diff --git a/dulwich/_objects.c b/dulwich/_objects.c
--- a/dulwich/_objects.c
+++ b/dulwich/_objects.c
@@ -59,7 +59,7 @@
 		return NULL;
 
 	/* TODO: currently this returns a list; if memory usage is a concern,
-	* consider rewriting as a custom iterator object */
+	 * consider rewriting as a custom iterator object */
 	ret = PyList_New(0);
 
 	if (ret == NULL) {
@@ -97,7 +97,7 @@
 		}
 
 		item = Py_BuildValue("(NlN)", name, mode,
-							 sha_to_pyhex((unsigned char *)text+namelen+1));
+		                     sha_to_pyhex((unsigned char *)text+namelen+1));
 		if (item == NULL) {
 			Py_DECREF(ret);
 			Py_DECREF(name);
@@ -193,7 +193,7 @@
 		qsort_entries[n].mode = PyInt_AS_LONG(py_mode);
 
 		qsort_entries[n].tuple = PyObject_CallFunctionObjArgs(
-				tree_entry_cls, key, py_mode, py_sha, NULL);
+		                tree_entry_cls, key, py_mode, py_sha, NULL);
 		if (qsort_entries[n].tuple == NULL)
 			goto error;
 		n++;



References