diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-16 06:54:25 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-16 06:54:25 (GMT) |
commit | 2c95cc6d72957296c46bb11362359675a47e2085 (patch) | |
tree | 9e6e78432b2aef86240297833b644d4d60d771a7 /Objects/structseq.c | |
parent | 26efe402c2a5dba441dc2feae2f15fea6be452ba (diff) | |
download | cpython-2c95cc6d72957296c46bb11362359675a47e2085.zip cpython-2c95cc6d72957296c46bb11362359675a47e2085.tar.gz cpython-2c95cc6d72957296c46bb11362359675a47e2085.tar.bz2 |
Support %zd in PyErr_Format and PyString_FromFormat.
Diffstat (limited to 'Objects/structseq.c')
-rw-r--r-- | Objects/structseq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/structseq.c b/Objects/structseq.c index a95f3a9..7a01fc4 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; |