]> granicus.if.org Git - python/commitdiff
Issue #9566: PyUnicode_FromFormatV() doesn't support %zi, use %zd instead
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 4 Jan 2011 22:00:04 +0000 (22:00 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 4 Jan 2011 22:00:04 +0000 (22:00 +0000)
Modules/pyexpat.c

index 21ab0882ca1a06ddd00f38c049024d017a6f40a6..ae98ef721a7e8f1b8dff619043313a4b41e37e27 100644 (file)
@@ -831,7 +831,7 @@ readinst(char *buf, int buf_size, PyObject *meth)
     if (len > buf_size) {
         PyErr_Format(PyExc_ValueError,
                      "read() returned too much data: "
-                     "%i bytes requested, %zi returned",
+                     "%i bytes requested, %zd returned",
                      buf_size, len);
         goto finally;
     }