diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2006-07-28 01:35:25 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2006-07-28 01:35:25 (GMT) |
commit | 641cddf0faa2aa50935e8f963094d9a0d7857adb (patch) | |
tree | 9e1ad95d8674d8dc46aa7df25a17a0be98bc0923 /Modules/_bsddb.c | |
parent | 9cab593c0e640dbeaeb774726b964cf2690cbf7a (diff) | |
download | cpython-641cddf0faa2aa50935e8f963094d9a0d7857adb.zip cpython-641cddf0faa2aa50935e8f963094d9a0d7857adb.tar.gz cpython-641cddf0faa2aa50935e8f963094d9a0d7857adb.tar.bz2 |
- 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.
Diffstat (limited to 'Modules/_bsddb.c')
-rw-r--r-- | Modules/_bsddb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index 9e302bc..b39e6f2 100644 --- a/Modules/_bsddb.c +++ b/Modules/_bsddb.c @@ -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; } |