Mercurial > cpython-lru_cache-weakref
diff Objects/dictobject.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 | 13e98e369abd |
| children | 1596ff5c79b5 |
line wrap: on
line diff
--- a/Objects/dictobject.c Thu Feb 16 06:21:57 2006 +0000 +++ b/Objects/dictobject.c Thu Feb 16 06:54:25 2006 +0000 @@ -1148,7 +1148,7 @@ if (n != 2) { PyErr_Format(PyExc_ValueError, "dictionary update sequence element #%d " - "has length %ld; 2 is required", + "has length %zd; 2 is required", i, (long)n); goto Fail; }
