From: zooko <zooko@zooko.com>
Date: Thu, 25 Jan 2007 21:23:19 +0000 (+0530)
Subject: allow any sequence as input, not just List
X-Git-Url: https://git.rkrishnan.org/simplejson/components/frontends/COPYING.TGPPL.html?a=commitdiff_plain;h=cedba5de29a0c5b5462c65cb32407bacf132b32c;p=tahoe-lafs%2Fzfec.git

allow any sequence as input, not just List

darcs-hash:ee8c812d4db5e0ffbd4434f96b2a0a28dbd5d127
---

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