fix: DB.stat flags and txn keyword arguments were backwards.

This commit is contained in:
Gregory P. Smith 2006-09-30 06:05:07 +00:00
parent bd42596179
commit 6fed7937c6
2 changed files with 4 additions and 2 deletions

View File

@ -22,6 +22,8 @@ Core and builtins
- Allow exception instances to be directly sliced again. - 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 Extension Modules
----------------- -----------------

View File

@ -98,7 +98,7 @@
#error "eek! DBVER can't handle minor versions > 9" #error "eek! DBVER can't handle minor versions > 9"
#endif #endif
#define PY_BSDDB_VERSION "4.4.5" #define PY_BSDDB_VERSION "4.4.5.1"
static char *rcs_id = "$Id$"; static char *rcs_id = "$Id$";
@ -2430,7 +2430,7 @@ DB_stat(DBObject* self, PyObject* args, PyObject* kwargs)
#if (DBVER >= 43) #if (DBVER >= 43)
PyObject* txnobj = NULL; PyObject* txnobj = NULL;
DB_TXN *txn = NULL; DB_TXN *txn = NULL;
static char* kwnames[] = { "txn", "flags", NULL }; static char* kwnames[] = { "flags", "txn", NULL };
#else #else
static char* kwnames[] = { "flags", NULL }; static char* kwnames[] = { "flags", NULL };
#endif #endif