diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-06-06 07:23:01 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-06-06 07:23:01 (GMT) |
commit | dd2a6bf14f5a0794c14780af72641177f216ee01 (patch) | |
tree | 920542a37aa06477d460d0c6e90280f755068012 /Modules | |
parent | e0e797f9be0e7e22761ccaa8ea886d523e1ac831 (diff) | |
download | cpython-dd2a6bf14f5a0794c14780af72641177f216ee01.zip cpython-dd2a6bf14f5a0794c14780af72641177f216ee01.tar.gz cpython-dd2a6bf14f5a0794c14780af72641177f216ee01.tar.bz2 |
Fix a bunch of parameter strings
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_bsddb.c | 14 |
1 files 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) |