]> granicus.if.org Git - python/commitdiff
Remove trailing whitespace.
authorEzio Melotti <ezio.melotti@gmail.com>
Sun, 21 Apr 2013 01:07:51 +0000 (04:07 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Sun, 21 Apr 2013 01:07:51 +0000 (04:07 +0300)
Objects/stringlib/transmogrify.h

index 1e132e54aa60cffe8b85bcaeb0f0d8b295a423cb..90fa129b32b8ac75a81e01453340804b4ef1f91a 100644 (file)
@@ -18,10 +18,10 @@ stringlib_expandtabs(PyObject *self, PyObject *args)
     size_t i, j;
     PyObject *u;
     int tabsize = 8;
-    
+
     if (!PyArg_ParseTuple(args, "|i:expandtabs", &tabsize))
         return NULL;
-    
+
     /* First pass: determine size of output string */
     i = j = 0;
     e = STRINGLIB_STR(self) + STRINGLIB_LEN(self);
@@ -48,20 +48,20 @@ stringlib_expandtabs(PyObject *self, PyObject *args)
                 }
             }
         }
-    
+
     if ((i + j) > PY_SSIZE_T_MAX) {
         PyErr_SetString(PyExc_OverflowError, "result is too long");
         return NULL;
     }
-    
+
     /* Second pass: create output string and fill it */
     u = STRINGLIB_NEW(NULL, i + j);
     if (!u)
         return NULL;
-    
+
     j = 0;
     q = STRINGLIB_STR(u);
-    
+
     for (p = STRINGLIB_STR(self); p < e; p++)
         if (*p == '\t') {
             if (tabsize > 0) {
@@ -77,7 +77,7 @@ stringlib_expandtabs(PyObject *self, PyObject *args)
             if (*p == '\n' || *p == '\r')
                 j = 0;
         }
-    
+
     return u;
 }