]> granicus.if.org Git - python/commitdiff
Fixes a bug with bsddb.DB.stat where the flags and txn keyword
authorGregory P. Smith <greg@mad-scientist.com>
Tue, 19 Sep 2006 17:35:04 +0000 (17:35 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Tue, 19 Sep 2006 17:35:04 +0000 (17:35 +0000)
arguments are transposed.  (reported by Louis Zechtzer)
..already committed to release24-maint
..needs committing to release25-maint

Misc/NEWS
Modules/_bsddb.c

index 07d11023eb59fd701ae0d877d853310d8e0d00e2..0f9cf8061af05642f6ae714c32156c00ae714dee 100644 (file)
--- 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
 -----------------
index 6fef6c2e65e8cb4dab93ed418238bf2b1316fb90..9be5c6aa429232b9d8764175eb23e23b84bc4461 100644 (file)
@@ -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