summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-04-16 22:04:49 +0000
committerThomas Wouters <thomas@python.org>2006-04-16 22:04:49 +0000
commit715a4cdea2275d8a64f4556c45f89908ce5a0de6 (patch)
tree340cff33d6f81ebd34df15dd598048a2e49369a9
parent0db2a989f3b861eae80959d26dae9fcdac4dde96 (diff)
downloadcpython-git-715a4cdea2275d8a64f4556c45f89908ce5a0de6.tar.gz
Use %zd instead of %i as format character (in call to PyErr_Format) for
Py_ssize_t argument.
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index f6996c71ea..292d02b1c2 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -4219,7 +4219,7 @@ PyUnicode_Join(PyObject *separator, PyObject *seq)
/* Convert item to Unicode. */
if (! PyUnicode_Check(item) && ! PyString_Check(item)) {
PyErr_Format(PyExc_TypeError,
- "sequence item %i: expected string or Unicode,"
+ "sequence item %zd: expected string or Unicode,"
" %.80s found",
i, item->ob_type->tp_name);
goto onError;