]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
allow any sequence as input, not just List
authorZooko O'Whielacronx <zooko@zooko.com>
Thu, 25 Jan 2007 22:23:19 +0000 (15:23 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Thu, 25 Jan 2007 22:23:19 +0000 (15:23 -0700)
pyfec/fec/fecmodule.c

index 053fc26bb2295a55fba0ae3dc599075a8725f2e4..79edc40977c7c37b27886d3343c3396f60de01d7 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). */