From: Zooko O'Whielacronx Date: Thu, 25 Jan 2007 22:23:19 +0000 (-0700) Subject: allow any sequence as input, not just List X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~321 X-Git-Url: https://git.rkrishnan.org/components/provisioning?a=commitdiff_plain;h=dcfdee5f25478195e0939e6f4505a269b2c71b88;p=tahoe-lafs%2Ftahoe-lafs.git allow any sequence as input, not just List --- diff --git a/pyfec/fec/fecmodule.c b/pyfec/fec/fecmodule.c index 053fc26b..79edc409 100644 --- a/pyfec/fec/fecmodule.c +++ b/pyfec/fec/fecmodule.c @@ -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). */