Commit e7e9c321 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Clean trailing whitespace in itertoolsmodule.c.

parent a3e9128a
...@@ -2667,17 +2667,17 @@ static PyObject * ...@@ -2667,17 +2667,17 @@ static PyObject *
accumulate_next(accumulateobject *lz) accumulate_next(accumulateobject *lz)
{ {
PyObject *val, *oldtotal, *newtotal; PyObject *val, *oldtotal, *newtotal;
val = PyIter_Next(lz->it); val = PyIter_Next(lz->it);
if (val == NULL) if (val == NULL)
return NULL; return NULL;
if (lz->total == NULL) { if (lz->total == NULL) {
Py_INCREF(val); Py_INCREF(val);
lz->total = val; lz->total = val;
return lz->total; return lz->total;
} }
newtotal = PyNumber_Add(lz->total, val); newtotal = PyNumber_Add(lz->total, val);
Py_DECREF(val); Py_DECREF(val);
if (newtotal == NULL) if (newtotal == NULL)
...@@ -2686,7 +2686,7 @@ accumulate_next(accumulateobject *lz) ...@@ -2686,7 +2686,7 @@ accumulate_next(accumulateobject *lz)
oldtotal = lz->total; oldtotal = lz->total;
lz->total = newtotal; lz->total = newtotal;
Py_DECREF(oldtotal); Py_DECREF(oldtotal);
Py_INCREF(newtotal); Py_INCREF(newtotal);
return newtotal; return newtotal;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment