[Python-checkins] cpython (3.3): Remove trailing whitespace.
ezio.melotti
python-checkins at python.org
Sun Apr 21 03:08:31 CEST 2013
http://hg.python.org/cpython/rev/ddfc092355fd
changeset: 83476:ddfc092355fd
branch: 3.3
parent: 83474:1e60a75e4e42
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Sun Apr 21 04:07:51 2013 +0300
summary:
Remove trailing whitespace.
files:
Objects/stringlib/transmogrify.h | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/Objects/stringlib/transmogrify.h b/Objects/stringlib/transmogrify.h
--- a/Objects/stringlib/transmogrify.h
+++ b/Objects/stringlib/transmogrify.h
@@ -18,10 +18,10 @@
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 @@
}
}
}
-
+
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 @@
if (*p == '\n' || *p == '\r')
j = 0;
}
-
+
return u;
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list