summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-16 06:54:25 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-02-16 06:54:25 (GMT)
commit2c95cc6d72957296c46bb11362359675a47e2085 (patch)
tree9e6e78432b2aef86240297833b644d4d60d771a7 /Objects/listobject.c
parent26efe402c2a5dba441dc2feae2f15fea6be452ba (diff)
downloadcpython-2c95cc6d72957296c46bb11362359675a47e2085.zip
cpython-2c95cc6d72957296c46bb11362359675a47e2085.tar.gz
cpython-2c95cc6d72957296c46bb11362359675a47e2085.tar.bz2
Support %zd in PyErr_Format and PyString_FromFormat.
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 460f63a..a970c14 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -2598,9 +2598,8 @@ list_ass_subscript(PyListObject* self, PyObject* item, PyObject* value)
}
if (PySequence_Fast_GET_SIZE(seq) != slicelength) {
- /* XXX can we use %zd here? */
PyErr_Format(PyExc_ValueError,
- "attempt to assign sequence of size %ld to extended slice of size %ld",
+ "attempt to assign sequence of size %zd to extended slice of size %zd",
(long)PySequence_Fast_GET_SIZE(seq),
(long)slicelength);
Py_DECREF(seq);