summaryrefslogtreecommitdiffstats
path: root/Modules/_bsddb.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2006-06-05 18:48:21 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2006-06-05 18:48:21 (GMT)
commit372b583a6b9fb16b4a7dd926d0bf0bf35975646a (patch)
tree95fc563d2230de6e452ab54404a63fc4fa403f7e /Modules/_bsddb.c
parent1cb75a5e0d295de36060a867d6c517cf71369db4 (diff)
downloadcpython-372b583a6b9fb16b4a7dd926d0bf0bf35975646a.zip
cpython-372b583a6b9fb16b4a7dd926d0bf0bf35975646a.tar.gz
cpython-372b583a6b9fb16b4a7dd926d0bf0bf35975646a.tar.bz2
* fix DBCursor.pget() bug with keyword argument names when no data= is
supplied [SF pybsddb bug #1477863]
Diffstat (limited to 'Modules/_bsddb.c')
-rw-r--r--Modules/_bsddb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c
index 90de6ae..b5df605 100644
--- a/Modules/_bsddb.c
+++ b/Modules/_bsddb.c
@@ -98,7 +98,7 @@
#error "eek! DBVER can't handle minor versions > 9"
#endif
-#define PY_BSDDB_VERSION "4.4.2"
+#define PY_BSDDB_VERSION "4.4.4"
static char *rcs_id = "$Id$";
@@ -3194,8 +3194,8 @@ DBC_pget(DBCursorObject* self, PyObject* args, PyObject *kwargs)
int dlen = -1;
int doff = -1;
DBT key, pkey, data;
- static char* kwnames[] = { "key","data", "flags", "dlen", "doff",
- NULL };
+ static char* kwnames_keyOnly[] = { "key", "flags", "dlen", "doff", NULL };
+ static char* kwnames[] = { "key", "data", "flags", "dlen", "doff", NULL };
CLEAR_DBT(key);
CLEAR_DBT(data);
@@ -3204,7 +3204,7 @@ DBC_pget(DBCursorObject* self, PyObject* args, PyObject *kwargs)
{
PyErr_Clear();
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "Oi|ii:pget",
- &kwnames[1],
+ kwnames_keyOnly,
&keyobj, &flags, &dlen, &doff))
{
PyErr_Clear();