summaryrefslogtreecommitdiffstats
path: root/Objects/structseq.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-16 06:59:22 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-02-16 06:59:22 (GMT)
commite0e89f79201e2ee57ebd0cc4765793d870c0a5c0 (patch)
tree2333ae17ed3e93be9887a083c71a8b7a17927637 /Objects/structseq.c
parent2c95cc6d72957296c46bb11362359675a47e2085 (diff)
downloadcpython-e0e89f79201e2ee57ebd0cc4765793d870c0a5c0.zip
cpython-e0e89f79201e2ee57ebd0cc4765793d870c0a5c0.tar.gz
cpython-e0e89f79201e2ee57ebd0cc4765793d870c0a5c0.tar.bz2
Revert 42400.
Diffstat (limited to 'Objects/structseq.c')
-rw-r--r--Objects/structseq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/structseq.c b/Objects/structseq.c
index 7a01fc4..023a1fd 100644
--- a/Objects/structseq.c
+++ b/Objects/structseq.c
@@ -126,7 +126,7 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if (len < min_len) {
PyErr_Format(PyExc_TypeError,
"%.500s() takes an at least %zd-sequence (%zd-sequence given)",
- type->tp_name, (long)min_len, (long)len);
+ type->tp_name, min_len, len);
Py_DECREF(arg);
return NULL;
}
@@ -134,7 +134,7 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if (len > max_len) {
PyErr_Format(PyExc_TypeError,
"%.500s() takes an at most %zd-sequence (%zd-sequence given)",
- type->tp_name, (long)max_len, (long)len);
+ type->tp_name, max_len, len);
Py_DECREF(arg);
return NULL;
}
@@ -143,7 +143,7 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if (len != min_len) {
PyErr_Format(PyExc_TypeError,
"%.500s() takes a %zd-sequence (%zd-sequence given)",
- type->tp_name, (long)min_len, (long)len);
+ type->tp_name, min_len, len);
Py_DECREF(arg);
return NULL;
}