From 715a4cdea2275d8a64f4556c45f89908ce5a0de6 Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Sun, 16 Apr 2006 22:04:49 +0000 Subject: [PATCH] Use %zd instead of %i as format character (in call to PyErr_Format) for Py_ssize_t argument. --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0