[Python-checkins] r45462 - python/trunk/Objects/unicodeobject.c

thomas.wouters python-checkins at python.org
Mon Apr 17 00:04:50 CEST 2006


Author: thomas.wouters
Date: Mon Apr 17 00:04:49 2006
New Revision: 45462

Modified:
   python/trunk/Objects/unicodeobject.c
Log:

Use %zd instead of %i as format character (in call to PyErr_Format) for
Py_ssize_t argument.



Modified: python/trunk/Objects/unicodeobject.c
==============================================================================
--- python/trunk/Objects/unicodeobject.c	(original)
+++ python/trunk/Objects/unicodeobject.c	Mon Apr 17 00:04:49 2006
@@ -4219,7 +4219,7 @@
 	/* 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;


More information about the Python-checkins mailing list