From: Gregory P. Smith Date: Tue, 19 Sep 2006 17:35:04 +0000 (+0000) Subject: Fixes a bug with bsddb.DB.stat where the flags and txn keyword X-Git-Tag: v2.6a1~2653 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2fa067982c05d404d2337ba9026d6781e3213e3e;p=python Fixes a bug with bsddb.DB.stat where the flags and txn keyword arguments are transposed. (reported by Louis Zechtzer) ..already committed to release24-maint ..needs committing to release25-maint --- diff --git a/Misc/NEWS b/Misc/NEWS index 07d11023eb..0f9cf8061a 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -58,6 +58,8 @@ Library - Bug #1531862: Do not close standard file descriptors in subprocess. +- fixed a bug with bsddb.DB.stat: its flags and txn keyword arguments + were transposed. Extension Modules ----------------- diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index 6fef6c2e65..9be5c6aa42 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.6" 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