From 2c95cc6d72957296c46bb11362359675a47e2085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 16 Feb 2006 06:54:25 +0000 Subject: Support %zd in PyErr_Format and PyString_FromFormat. --- Objects/structseq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Objects/structseq.c') diff --git a/Objects/structseq.c b/Objects/structseq.c index a95f3a9ad6..7a01fc4a8a 100644 --- a/Objects/structseq.c +++ b/Objects/structseq.c @@ -125,7 +125,7 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds) if (min_len != max_len) { if (len < min_len) { PyErr_Format(PyExc_TypeError, - "%.500s() takes an at least %ld-sequence (%ld-sequence given)", + "%.500s() takes an at least %zd-sequence (%zd-sequence given)", type->tp_name, (long)min_len, (long)len); Py_DECREF(arg); return NULL; @@ -133,7 +133,7 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds) if (len > max_len) { PyErr_Format(PyExc_TypeError, - "%.500s() takes an at most %ld-sequence (%ld-sequence given)", + "%.500s() takes an at most %zd-sequence (%zd-sequence given)", type->tp_name, (long)max_len, (long)len); Py_DECREF(arg); return NULL; @@ -142,7 +142,7 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds) else { if (len != min_len) { PyErr_Format(PyExc_TypeError, - "%.500s() takes a %ld-sequence (%ld-sequence given)", + "%.500s() takes a %zd-sequence (%zd-sequence given)", type->tp_name, (long)min_len, (long)len); Py_DECREF(arg); return NULL; -- cgit v1.2.1