From cedba5de29a0c5b5462c65cb32407bacf132b32c Mon Sep 17 00:00:00 2001 From: zooko Date: Fri, 26 Jan 2007 02:53:19 +0530 Subject: [PATCH] allow any sequence as input, not just List darcs-hash:ee8c812d4db5e0ffbd4434f96b2a0a28dbd5d127 --- pyfec/fec/fecmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfec/fec/fecmodule.c b/pyfec/fec/fecmodule.c index 211079c..cc7711c 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). */ -- 2.45.2