diff options
author | Roger E. Masse <rmasse@newcnri.cnri.reston.va.us> | 1996-12-13 15:59:22 (GMT) |
---|---|---|
committer | Roger E. Masse <rmasse@newcnri.cnri.reston.va.us> | 1996-12-13 15:59:22 (GMT) |
commit | bd4b961a0d1d9a16adb927dcd5a4adb5665d281d (patch) | |
tree | 744d556aca7e1df38283585c48011b6ed38565c7 | |
parent | e7ee8c37539e291776f2a35636569f74e084cfa7 (diff) | |
download | cpython-bd4b961a0d1d9a16adb927dcd5a4adb5665d281d.zip cpython-bd4b961a0d1d9a16adb927dcd5a4adb5665d281d.tar.gz cpython-bd4b961a0d1d9a16adb927dcd5a4adb5665d281d.tar.bz2 |
Opps, fixed a couple of newly introduced wrapping problems.
-rw-r--r-- | Modules/dbmmodule.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Modules/dbmmodule.c b/Modules/dbmmodule.c index 4285a4e..4c82a9f 100644 --- a/Modules/dbmmodule.c +++ b/Modules/dbmmodule.c @@ -140,18 +140,19 @@ PyObject *v, *w; if ( dbm_delete(dp->di_dbm, krec) < 0 ) { dbm_clearerr(dp->di_dbm); PyErr_SetString(PyExc_KeyError, - PyString_AS_STRING((PyStringObject *)v)); + PyString_AS_STRING((PyStringObject *)v)); return -1; } } else { if ( !PyArg_Parse(w, "s#", &drec.dptr, &drec.dsize) ) { PyErr_SetString(PyExc_TypeError, - "dbm mappings have string elements only"); + "dbm mappings have string elements only"); return -1; } if ( dbm_store(dp->di_dbm, krec, drec, DBM_REPLACE) < 0 ) { dbm_clearerr(dp->di_dbm); - PyErr_SetString(DbmError, "Cannot add item to database"); + PyErr_SetString(DbmError, + "Cannot add item to database"); return -1; } } |