diff options
author | Thomas Wouters <thomas@python.org> | 2006-03-01 05:38:39 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-03-01 05:38:39 (GMT) |
commit | 572a9f32dc1a04ff72d2bcf6389f1db736e0ad8c (patch) | |
tree | f540f75c942f30996661f9def59d0db4b635a221 | |
parent | 7c187bcc828fb844fa83a569e8512ad03ec294e1 (diff) | |
download | cpython-572a9f32dc1a04ff72d2bcf6389f1db736e0ad8c.zip cpython-572a9f32dc1a04ff72d2bcf6389f1db736e0ad8c.tar.gz cpython-572a9f32dc1a04ff72d2bcf6389f1db736e0ad8c.tar.bz2 |
Use %zd format characters for Py_ssize_t types.
-rw-r--r-- | Python/getargs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index e14a07b..4f4164e 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -1686,13 +1686,13 @@ PyArg_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t m 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 @@ PyArg_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t m 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; |