From: Gregory P. Smith Date: Tue, 19 Sep 2006 17:23:50 +0000 (+0000) Subject: fix a bug with bsddb.DB.stat reversing its flags and txn keyword X-Git-Tag: v2.4.4c1~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=570c6559921733e6396665295bfb058f90657be5;p=thirdparty%2FPython%2Fcpython.git fix a bug with bsddb.DB.stat reversing its flags and txn keyword arguments. (reported by Louis Zechtzer) --- diff --git a/Misc/NEWS b/Misc/NEWS index 2fe66c17a25e..5cddbf224af9 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -46,6 +46,9 @@ Core and builtins - iso2022_jp_3 and iso2022_jp_2004 codec can encode JIS X 2013:2 codepoints now. +- 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 1d3badf7b32a..e07d44376dbd 100644 --- a/Modules/_bsddb.c +++ b/Modules/_bsddb.c @@ -2172,7 +2172,7 @@ DB_stat(DBObject* self, PyObject* args, PyObject* kwargs) #if (DBVER >= 43) PyObject* txnobj = NULL; DB_TXN *txn = NULL; - char* kwnames[] = { "txn", "flags", NULL }; + char* kwnames[] = { "flags", "txn", NULL }; #else char* kwnames[] = { "flags", NULL }; #endif