mirror of https://github.com/python/cpython
Use %zd instead of %i as format character (in call to PyErr_Format) for
Py_ssize_t argument.
This commit is contained in:
parent
0db2a989f3
commit
715a4cdea2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue