[Python-checkins] cpython (merge 3.3 -> default): Clean trailing whitespace in itertoolsmodule.c.

serhiy.storchaka python-checkins at python.org
Fri Jan 25 12:43:51 CET 2013


http://hg.python.org/cpython/rev/1b9e1dc695ab
changeset:   81706:1b9e1dc695ab
parent:      81702:02d7a127fdfb
parent:      81705:20c4d55f4b69
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Fri Jan 25 13:40:01 2013 +0200
summary:
  Clean trailing whitespace in itertoolsmodule.c.

files:
  Modules/itertoolsmodule.c |  16 ++++++++--------
  1 files changed, 8 insertions(+), 8 deletions(-)


diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -964,7 +964,7 @@
     /* 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 @@
                 goto err;
             PyTuple_SET_ITEM(indices, i, index);
         }
-            
+
         cycles = PyTuple_New(po->r);
         if (cycles == NULL)
             goto err;
@@ -3180,7 +3180,7 @@
 {
     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 @@
 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 @@
     oldtotal = lz->total;
     lz->total = newtotal;
     Py_DECREF(oldtotal);
-    
+
     Py_INCREF(newtotal);
     return newtotal;
 }
@@ -4351,7 +4351,7 @@
 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
      */

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list