summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-01-25 11:38:56 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-01-25 11:38:56 (GMT)
commitd269b5e73d831b5cd870c859741f248cb8b1bc09 (patch)
tree90cbe515ba810710c9f4350baefb4ec9e30f936f
parent339e91d4cb5fcbd622447b5249c4570d35c577f9 (diff)
parente7e9c321959c46f7a5c84c38ae61eda89f616e70 (diff)
downloadcpython-d269b5e73d831b5cd870c859741f248cb8b1bc09.zip
cpython-d269b5e73d831b5cd870c859741f248cb8b1bc09.tar.gz
cpython-d269b5e73d831b5cd870c859741f248cb8b1bc09.tar.bz2
Clean trailing whitespace in itertoolsmodule.c.
-rw-r--r--Modules/itertoolsmodule.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index 8d20ea0..644104e 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
*/