Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 37787:ec00b798ab56 legacy-trunk
No need to cast a Py_ssize_t, use %z in PyErr_Format
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Mon, 17 Apr 2006 05:56:32 +0000 |
| parents | 9b22d8b7bcaa |
| children | 20cb13bdf1f0 |
line wrap: on
line diff
--- a/Objects/stringobject.c Mon Apr 17 02:41:25 2006 +0000 +++ b/Objects/stringobject.c Mon Apr 17 05:56:32 2006 +0000 @@ -1677,9 +1677,9 @@ } #endif PyErr_Format(PyExc_TypeError, - "sequence item %i: expected string," + "sequence item %zd: expected string," " %.80s found", - /*XXX*/(int)i, item->ob_type->tp_name); + i, item->ob_type->tp_name); Py_DECREF(seq); return NULL; }
