Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 37786:5c453302d5f6 | 37787:ec00b798ab56 |
|---|---|
| 1675 Py_DECREF(seq); | 1675 Py_DECREF(seq); |
| 1676 return result; | 1676 return result; |
| 1677 } | 1677 } |
| 1678 #endif | 1678 #endif |
| 1679 PyErr_Format(PyExc_TypeError, | 1679 PyErr_Format(PyExc_TypeError, |
| 1680 "sequence item %i: expected string," | 1680 "sequence item %zd: expected string," |
| 1681 " %.80s found", | 1681 " %.80s found", |
| 1682 /*XXX*/(int)i, item->ob_type->tp_name); | 1682 i, item->ob_type->tp_name); |
| 1683 Py_DECREF(seq); | 1683 Py_DECREF(seq); |
| 1684 return NULL; | 1684 return NULL; |
| 1685 } | 1685 } |
| 1686 sz += PyString_GET_SIZE(item); | 1686 sz += PyString_GET_SIZE(item); |
| 1687 if (i != 0) | 1687 if (i != 0) |
