summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-05-27 05:18:57 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-05-27 05:18:57 (GMT)
commit2f3136b8f0b4845b29b2d7363ae2181a06b79750 (patch)
tree2a695a26c24ffebcba294f74f6ea35f5cbb498cc /Modules
parent8040359724d66f19adf7a6e4c66151bbd2522d28 (diff)
downloadcpython-2f3136b8f0b4845b29b2d7363ae2181a06b79750.zip
cpython-2f3136b8f0b4845b29b2d7363ae2181a06b79750.tar.gz
cpython-2f3136b8f0b4845b29b2d7363ae2181a06b79750.tar.bz2
Fix compiler warning (and whitespace) on Mac OS 10.4. (A lot of this code looked duplicated, I wonder if a utility function could help reduce the duplication here.)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/itertoolsmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index c144825..86b1bbf 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -1621,7 +1621,7 @@ chain_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
/* obtain iterators */
assert(PyTuple_Check(args));
ittuple = PyTuple_New(tuplesize);
- if(ittuple == NULL)
+ if (ittuple == NULL)
return NULL;
for (i=0; i < tuplesize; ++i) {
PyObject *item = PyTuple_GET_ITEM(args, i);
@@ -1629,7 +1629,7 @@ chain_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if (it == NULL) {
if (PyErr_ExceptionMatches(PyExc_TypeError))
PyErr_Format(PyExc_TypeError,
- "chain argument #%d must support iteration",
+ "chain argument #%zd must support iteration",
i+1);
Py_DECREF(ittuple);
return NULL;
@@ -2151,7 +2151,7 @@ izip_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
/* obtain iterators */
ittuple = PyTuple_New(tuplesize);
- if(ittuple == NULL)
+ if (ittuple == NULL)
return NULL;
for (i=0; i < tuplesize; ++i) {
PyObject *item = PyTuple_GET_ITEM(args, i);
@@ -2159,7 +2159,7 @@ izip_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if (it == NULL) {
if (PyErr_ExceptionMatches(PyExc_TypeError))
PyErr_Format(PyExc_TypeError,
- "izip argument #%d must support iteration",
+ "izip argument #%zd must support iteration",
i+1);
Py_DECREF(ittuple);
return NULL;