mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
- pybsddb Bug #1527939: bsddb module DBEnv dbremove and dbrename
methods now allow their database parameter to be None as the sleepycat API allows. Also adds an appropriate test case for DBEnv.dbrename and dbremove.
This commit is contained in:
parent
9cab593c0e
commit
641cddf0fa
3 changed files with 40 additions and 11 deletions
|
@ -98,7 +98,7 @@
|
|||
#error "eek! DBVER can't handle minor versions > 9"
|
||||
#endif
|
||||
|
||||
#define PY_BSDDB_VERSION "4.4.4"
|
||||
#define PY_BSDDB_VERSION "4.4.5"
|
||||
static char *rcs_id = "$Id$";
|
||||
|
||||
|
||||
|
@ -3876,7 +3876,7 @@ DBEnv_dbremove(DBEnvObject* self, PyObject* args, PyObject* kwargs)
|
|||
static char* kwnames[] = { "file", "database", "txn", "flags",
|
||||
NULL };
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ss|Oi:dbremove", kwnames,
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|zOi:dbremove", kwnames,
|
||||
&file, &database, &txnobj, &flags)) {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -3904,7 +3904,7 @@ DBEnv_dbrename(DBEnvObject* self, PyObject* args, PyObject* kwargs)
|
|||
static char* kwnames[] = { "file", "database", "newname", "txn",
|
||||
"flags", NULL };
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "sss|Oi:dbrename", kwnames,
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "szs|Oi:dbrename", kwnames,
|
||||
&file, &database, &newname, &txnobj, &flags)) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue