mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 11:16:24 +00:00
allow any sequence as input, not just List
This commit is contained in:
parent
b9c9b9f7b4
commit
dcfdee5f25
@ -95,7 +95,7 @@ Encoder_encode(Encoder *self, PyObject *args) {
|
||||
PyObject* desired_shares_ids = NULL; /* The shareids of the shares that should be returned. */
|
||||
PyObject* result = NULL;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "O!|O!", &PyList_Type, &inshares, &PyList_Type, &desired_shares_ids))
|
||||
if (!PyArg_ParseTuple(args, "O|O", &inshares, &desired_shares_ids))
|
||||
return NULL;
|
||||
|
||||
gf* check_shares_produced[self->mm - self->kk]; /* This is an upper bound -- we will actually use only num_check_shares_produced of these elements (see below). */
|
||||
|
Loading…
Reference in New Issue
Block a user