Mercurial > cpython-lru_cache-weakref
diff Python/getargs.c @ 36758:3e19271efc46 legacy-trunk
Use %zd format characters for Py_ssize_t types.
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Wed, 01 Mar 2006 05:38:39 +0000 |
| parents | 92ba72484ff3 |
| children | 64ff3b225d48 |
line wrap: on
line diff
--- a/Python/getargs.c Wed Mar 01 05:34:22 2006 +0000 +++ b/Python/getargs.c Wed Mar 01 05:38:39 2006 +0000 @@ -1686,13 +1686,13 @@ if (name != NULL) PyErr_Format( PyExc_TypeError, - "%s expected %s%d arguments, got %d", + "%s expected %s%zd arguments, got %zd", name, (min == max ? "" : "at least "), min, l); else PyErr_Format( PyExc_TypeError, - "unpacked tuple should have %s%d elements," - " but has %d", + "unpacked tuple should have %s%zd elements," + " but has %zd", (min == max ? "" : "at least "), min, l); va_end(vargs); return 0; @@ -1701,13 +1701,13 @@ if (name != NULL) PyErr_Format( PyExc_TypeError, - "%s expected %s%d arguments, got %d", + "%s expected %s%zd arguments, got %zd", name, (min == max ? "" : "at most "), max, l); else PyErr_Format( PyExc_TypeError, - "unpacked tuple should have %s%d elements," - " but has %d", + "unpacked tuple should have %s%zd elements," + " but has %zd", (min == max ? "" : "at most "), max, l); va_end(vargs); return 0;
