summaryrefslogtreecommitdiffstats
path: root/Modules/dbmmodule.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-02-26 05:12:50 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-02-26 05:12:50 (GMT)
commitb628913b08334cf9005c90f8f8addb31c144639a (patch)
tree55aaebb1850e636920de055be4b33e13b8fa5576 /Modules/dbmmodule.c
parentb0917c14f2fbc776bf49d3949fd456ef86027e72 (diff)
downloadcpython-b628913b08334cf9005c90f8f8addb31c144639a.zip
cpython-b628913b08334cf9005c90f8f8addb31c144639a.tar.gz
cpython-b628913b08334cf9005c90f8f8addb31c144639a.tar.bz2
Whitespace normalization
Diffstat (limited to 'Modules/dbmmodule.c')
-rw-r--r--Modules/dbmmodule.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Modules/dbmmodule.c b/Modules/dbmmodule.c
index b16ffa7..fb6c7b6 100644
--- a/Modules/dbmmodule.c
+++ b/Modules/dbmmodule.c
@@ -164,17 +164,17 @@ dbm_ass_sub(dbmobject *dp, PyObject *v, PyObject *w)
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;
}