We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3e9128 commit e7e9c32Copy full SHA for e7e9c32
Modules/itertoolsmodule.c
@@ -2667,17 +2667,17 @@ static PyObject *
2667
accumulate_next(accumulateobject *lz)
2668
{
2669
PyObject *val, *oldtotal, *newtotal;
2670
-
+
2671
val = PyIter_Next(lz->it);
2672
if (val == NULL)
2673
return NULL;
2674
2675
if (lz->total == NULL) {
2676
Py_INCREF(val);
2677
lz->total = val;
2678
return lz->total;
2679
}
2680
2681
newtotal = PyNumber_Add(lz->total, val);
2682
Py_DECREF(val);
2683
if (newtotal == NULL)
@@ -2686,7 +2686,7 @@ accumulate_next(accumulateobject *lz)
2686
oldtotal = lz->total;
2687
lz->total = newtotal;
2688
Py_DECREF(oldtotal);
2689
2690
Py_INCREF(newtotal);
2691
return newtotal;
2692
0 commit comments