[Python-checkins] r61078 - python/trunk/Modules/dbmmodule.c

neal.norwitz python-checkins at python.org
Tue Feb 26 06:12:50 CET 2008


Author: neal.norwitz
Date: Tue Feb 26 06:12:50 2008
New Revision: 61078

Modified:
   python/trunk/Modules/dbmmodule.c
Log:
Whitespace normalization

Modified: python/trunk/Modules/dbmmodule.c
==============================================================================
--- python/trunk/Modules/dbmmodule.c	(original)
+++ python/trunk/Modules/dbmmodule.c	Tue Feb 26 06:12:50 2008
@@ -164,17 +164,17 @@
 static int
 dbm_contains(register dbmobject *dp, PyObject *v)
 {
-    datum key, val;
+	datum key, val;
+
+	if (PyString_AsStringAndSize(v, &key.dptr, &key.dsize)) {
+		return -1;
+	}
 
-    if (PyString_AsStringAndSize(v, &key.dptr, &key.dsize)) {
-        return -1;
-    }
-
-    /* Expand check_dbmobject_open to return -1 */
-    if (dp->di_dbm == NULL) {
-        PyErr_SetString(DbmError, "DBM object has already been closed");
-        return -1;
-    }
+	/* Expand check_dbmobject_open to return -1 */
+	if (dp->di_dbm == NULL) {
+		PyErr_SetString(DbmError, "DBM object has already been closed");
+		return -1;
+	}
 	val = dbm_fetch(dp->di_dbm, key);
 	return val.dptr != NULL;
 }


More information about the Python-checkins mailing list