]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix a bug with bsddb.DB.stat reversing its flags and txn keyword
authorGregory P. Smith <greg@mad-scientist.com>
Tue, 19 Sep 2006 17:23:50 +0000 (17:23 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Tue, 19 Sep 2006 17:23:50 +0000 (17:23 +0000)
arguments.  (reported by Louis Zechtzer)

Misc/NEWS
Modules/_bsddb.c

index 2fe66c17a25e3e3e2b2a68de97e7646db22bf35c..5cddbf224af99a1ef650941987b0c3a768ece56e 100644 (file)
--- 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
 -----------------
 
index 1d3badf7b32ae89e4306ac8ea4a69d4614515a11..e07d44376dbd5f4aa2844e6964a47da06232a986 100644 (file)
@@ -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