From: Gregory P. Smith Date: Sat, 30 Sep 2006 06:05:07 +0000 (+0000) Subject: fix: DB.stat flags and txn keyword arguments were backwards. X-Git-Tag: v2.5.1c1~368 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6fed7937c6edde175b6596c05ca4e1284785c8c3;p=python fix: DB.stat flags and txn keyword arguments were backwards. --- diff --git a/Misc/NEWS b/Misc/NEWS index 165906e6c5..fd22c7ed4f 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -22,6 +22,8 @@ Core and builtins - Allow exception instances to be directly sliced again. +- fixed a bug with bsddb.DB.stat: the flags and txn keyword arguments + were transposed. Extension Modules ----------------- diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index 6fef6c2e65..9d56e2765d 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.5" +#define PY_BSDDB_VERSION "4.4.5.1" static char *rcs_id = "$Id$"; @@ -2430,7 +2430,7 @@ DB_stat(DBObject* self, PyObject* args, PyObject* kwargs) #if (DBVER >= 43) PyObject* txnobj = NULL; DB_TXN *txn = NULL; - static char* kwnames[] = { "txn", "flags", NULL }; + static char* kwnames[] = { "flags", "txn", NULL }; #else static char* kwnames[] = { "flags", NULL }; #endif