From dcfdee5f25478195e0939e6f4505a269b2c71b88 Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Thu, 25 Jan 2007 15:23:19 -0700
Subject: [PATCH] allow any sequence as input, not just List

---
 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 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). */
-- 
2.45.2