diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-01-25 13:40:01 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-01-25 13:40:01 +0200 |
commit | 35f284b75e7c4e35c57575b8839efc15fc12daad (patch) | |
tree | 02bdf00b3f27fff78c4bff931ec15d500c03816d /Modules | |
parent | c5dadcf2fd0fb1a22ee6e1024fd1709e85d6a2f8 (diff) | |
parent | d269b5e73d831b5cd870c859741f248cb8b1bc09 (diff) | |
download | cpython-git-35f284b75e7c4e35c57575b8839efc15fc12daad.tar.gz |
Clean trailing whitespace in itertoolsmodule.c.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/itertoolsmodule.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index 8d20ea0fe9..644104e85b 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -964,7 +964,7 @@ cycle_reduce(cycleobject *lz) /* Create a new cycle with the iterator tuple, then set * the saved state on it. */ - return Py_BuildValue("O(O)(Oi)", Py_TYPE(lz), + return Py_BuildValue("O(O)(Oi)", Py_TYPE(lz), lz->it, lz->saved, lz->firstpass); } @@ -3154,7 +3154,7 @@ permutations_reduce(permutationsobject *po) goto err; PyTuple_SET_ITEM(indices, i, index); } - + cycles = PyTuple_New(po->r); if (cycles == NULL) goto err; @@ -3180,7 +3180,7 @@ permutations_setstate(permutationsobject *po, PyObject *state) { PyObject *indices, *cycles, *result; Py_ssize_t n, i; - + if (!PyArg_ParseTuple(state, "O!O!", &PyTuple_Type, &indices, &PyTuple_Type, &cycles)) @@ -3359,18 +3359,18 @@ static PyObject * accumulate_next(accumulateobject *lz) { PyObject *val, *oldtotal, *newtotal; - + val = PyIter_Next(lz->it); if (val == NULL) return NULL; - + if (lz->total == NULL) { Py_INCREF(val); lz->total = val; return lz->total; } - if (lz->binop == NULL) + if (lz->binop == NULL) newtotal = PyNumber_Add(lz->total, val); else newtotal = PyObject_CallFunctionObjArgs(lz->binop, lz->total, val, NULL); @@ -3381,7 +3381,7 @@ accumulate_next(accumulateobject *lz) oldtotal = lz->total; lz->total = newtotal; Py_DECREF(oldtotal); - + Py_INCREF(newtotal); return newtotal; } @@ -4351,7 +4351,7 @@ zip_longest_next(ziplongestobject *lz) static PyObject * zip_longest_reduce(ziplongestobject *lz) { - + /* Create a new tuple with empty sequences where appropriate to pickle. * Then use setstate to set the fillvalue */ |