Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.c @ 36510:0f3894bb2ada legacy-trunk
Support %zd in PyErr_Format and PyString_FromFormat.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Thu, 16 Feb 2006 06:54:25 +0000 |
| parents | 7fdc639bc5b4 |
| children | d6d415df0df0 |
line wrap: on
line diff
--- a/Objects/typeobject.c Thu Feb 16 06:21:57 2006 +0000 +++ b/Objects/typeobject.c Thu Feb 16 06:54:25 2006 +0000 @@ -3372,10 +3372,9 @@ } if (n == PyTuple_GET_SIZE(ob)) return 1; - /* XXX %zd? */ PyErr_Format( PyExc_TypeError, - "expected %d arguments, got %d", n, (int)PyTuple_GET_SIZE(ob)); + "expected %d arguments, got %zd", n, PyTuple_GET_SIZE(ob)); return 0; }
