]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/commitdiff
allow any sequence as input, not just List
authorzooko <zooko@zooko.com>
Thu, 25 Jan 2007 21:23:19 +0000 (02:53 +0530)
committerzooko <zooko@zooko.com>
Thu, 25 Jan 2007 21:23:19 +0000 (02:53 +0530)
darcs-hash:ee8c812d4db5e0ffbd4434f96b2a0a28dbd5d127

pyfec/fec/fecmodule.c

index 211079c25ed56c3ac264d02a1168fb346fec51ae..cc7711cdd7b0234c3e71fb1326b3cde8a1396a70 100644 (file)
@@ -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). */