summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-04-17 05:56:32 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-04-17 05:56:32 (GMT)
commit0e2cbabb8d1b44cc4c9dfd31b0dd5fa9a950dba7 (patch)
treee303d19458c86608de5672f1435847680e87aea1 /Objects
parent4b16de435018e1bed38f9cea363b7533d3dff80e (diff)
downloadcpython-0e2cbabb8d1b44cc4c9dfd31b0dd5fa9a950dba7.zip
cpython-0e2cbabb8d1b44cc4c9dfd31b0dd5fa9a950dba7.tar.gz
cpython-0e2cbabb8d1b44cc4c9dfd31b0dd5fa9a950dba7.tar.bz2
No need to cast a Py_ssize_t, use %z in PyErr_Format
Diffstat (limited to 'Objects')
-rw-r--r--Objects/stringobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 99cadca..9d4dc74 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -1677,9 +1677,9 @@ string_join(PyStringObject *self, PyObject *orig)
}
#endif
PyErr_Format(PyExc_TypeError,
- "sequence item %i: expected string,"
+ "sequence item %zd: expected string,"
" %.80s found",
- /*XXX*/(int)i, item->ob_type->tp_name);
+ i, item->ob_type->tp_name);
Py_DECREF(seq);
return NULL;
}