Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 37775:d8b23ba4a274 legacy-trunk
Use %zd instead of %i as format character (in call to PyErr_Format) for
Py_ssize_t argument.
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Sun, 16 Apr 2006 22:04:49 +0000 |
| parents | 9b22d8b7bcaa |
| children | d8355cccff4a |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Sun Apr 16 20:55:38 2006 +0000 +++ b/Objects/unicodeobject.c Sun Apr 16 22:04:49 2006 +0000 @@ -4219,7 +4219,7 @@ /* 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;
