]> granicus.if.org Git - python/commitdiff
Use %zd instead of %i as format character (in call to PyErr_Format) for
authorThomas Wouters <thomas@python.org>
Sun, 16 Apr 2006 22:04:49 +0000 (22:04 +0000)
committerThomas Wouters <thomas@python.org>
Sun, 16 Apr 2006 22:04:49 +0000 (22:04 +0000)
Py_ssize_t argument.

Objects/unicodeobject.c

index f6996c71eaaa2b3b88d1a5c3156592bfd4eceff8..292d02b1c22afd26e4cffb6dcff37f3acb0e34aa 100644 (file)
@@ -4219,7 +4219,7 @@ PyUnicode_Join(PyObject *separator, PyObject *seq)
        /* Convert item to Unicode. */
        if (! PyUnicode_Check(item) && ! PyString_Check(item)) {
            PyErr_Format(PyExc_TypeError,
-                        "sequence item %i: expected string or Unicode,"
+                        "sequence item %zd: expected string or Unicode,"
                         " %.80s found",
                         i, item->ob_type->tp_name);
            goto onError;