Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 23494:76f376bea5e5 legacy-trunk
Patch 549187. Improve string formatting error message.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Tue, 21 May 2002 15:14:57 +0000 |
| parents | 6fa76b4e59fe |
| children | 220b98f06415 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Tue May 21 14:28:22 2002 +0000 +++ b/Objects/unicodeobject.c Tue May 21 15:14:57 2002 +0000 @@ -5708,7 +5708,7 @@ } if (dict && (argidx < arglen) && c != '%') { PyErr_SetString(PyExc_TypeError, - "not all arguments converted"); + "not all arguments converted during string formatting"); goto onError; } Py_XDECREF(temp); @@ -5716,7 +5716,7 @@ } /* until end */ if (argidx < arglen && !dict) { PyErr_SetString(PyExc_TypeError, - "not all arguments converted"); + "not all arguments converted during string formatting"); goto onError; }
