[Python-3000-checkins] r56816 - python/branches/py3k-struni/Modules/dbmmodule.c
guido.van.rossum
python-3000-checkins at python.org
Wed Aug 8 04:29:36 CEST 2007
Author: guido.van.rossum
Date: Wed Aug 8 04:29:35 2007
New Revision: 56816
Modified:
python/branches/py3k-struni/Modules/dbmmodule.c
Log:
Fix a type error in a previous patch I made to this module.
I should not ignore compiler warnings!
Modified: python/branches/py3k-struni/Modules/dbmmodule.c
==============================================================================
--- python/branches/py3k-struni/Modules/dbmmodule.c (original)
+++ python/branches/py3k-struni/Modules/dbmmodule.c Wed Aug 8 04:29:35 2007
@@ -134,7 +134,7 @@
if (w == NULL) {
if ( dbm_delete(dp->di_dbm, krec) < 0 ) {
dbm_clearerr(dp->di_dbm);
- PyErr_SetString(PyExc_KeyError, v);
+ PyErr_SetObject(PyExc_KeyError, v);
return -1;
}
} else {
More information about the Python-3000-checkins
mailing list