Use %zd instead of %i as format character (in call to PyErr_Format) for

Py_ssize_t argument.
This commit is contained in:
Thomas Wouters 2006-04-16 22:04:49 +00:00
parent 0db2a989f3
commit 715a4cdea2
1 changed files with 1 additions and 1 deletions

View File

@ -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;