From dd2a6bf14f5a0794c14780af72641177f216ee01 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Tue, 6 Jun 2006 07:23:01 +0000 Subject: Fix a bunch of parameter strings --- Modules/_bsddb.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index ac61455..0822aa9 100644 --- a/Modules/_bsddb.c +++ b/Modules/_bsddb.c @@ -4875,7 +4875,7 @@ DBSequence_init_value(DBSequenceObject* self, PyObject* args) { int err; db_seq_t value; - if (!PyArg_ParseTuple(args,"L|:init_value", &value)) + if (!PyArg_ParseTuple(args,"L:init_value", &value)) return NULL; CHECK_SEQUENCE_NOT_CLOSED(self) @@ -4898,7 +4898,7 @@ DBSequence_open(DBSequenceObject* self, PyObject* args, PyObject* kwargs) DBT key; static char* kwnames[] = {"key", "txn", "flags", NULL }; - if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|Oi:set", kwnames, &keyobj, &txnobj, &flags)) + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|Oi:open", kwnames, &keyobj, &txnobj, &flags)) return NULL; if (!checkTxnObj(txnobj, &txn)) @@ -4925,7 +4925,7 @@ DBSequence_remove(DBSequenceObject* self, PyObject* args, PyObject* kwargs) DB_TXN *txn = NULL; static char* kwnames[] = {"txn", "flags", NULL }; - if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|Oi:set", kwnames, &txnobj, &flags)) + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|Oi:remove", kwnames, &txnobj, &flags)) return NULL; if (!checkTxnObj(txnobj, &txn)) @@ -4945,7 +4945,7 @@ static PyObject* DBSequence_set_cachesize(DBSequenceObject* self, PyObject* args) { int err, size; - if (!PyArg_ParseTuple(args,"i|:set_cachesize", &size)) + if (!PyArg_ParseTuple(args,"i:set_cachesize", &size)) return NULL; CHECK_SEQUENCE_NOT_CLOSED(self) @@ -4977,7 +4977,7 @@ static PyObject* DBSequence_set_flags(DBSequenceObject* self, PyObject* args) { int err, flags = 0; - if (!PyArg_ParseTuple(args,"i|:set_flags", &flags)) + if (!PyArg_ParseTuple(args,"i:set_flags", &flags)) return NULL; CHECK_SEQUENCE_NOT_CLOSED(self) @@ -4995,7 +4995,7 @@ DBSequence_get_flags(DBSequenceObject* self, PyObject* args) { unsigned int flags; int err; - if (!PyArg_ParseTuple(args,":get_cachesize")) + if (!PyArg_ParseTuple(args,":get_flags")) return NULL; CHECK_SEQUENCE_NOT_CLOSED(self) @@ -5012,7 +5012,7 @@ DBSequence_set_range(DBSequenceObject* self, PyObject* args) { int err; db_seq_t min, max; - if (!PyArg_ParseTuple(args,"(LL):set_range", &min, &max)) + if (!PyArg_ParseTuple(args,"LL:set_range", &min, &max)) return NULL; CHECK_SEQUENCE_NOT_CLOSED(self) -- cgit v0.12