[Python-checkins] r45476 - python/trunk/Objects/stringobject.c

neal.norwitz python-checkins at python.org
Mon Apr 17 07:56:33 CEST 2006


Author: neal.norwitz
Date: Mon Apr 17 07:56:32 2006
New Revision: 45476

Modified:
   python/trunk/Objects/stringobject.c
Log:
No need to cast a Py_ssize_t, use %z in PyErr_Format

Modified: python/trunk/Objects/stringobject.c
==============================================================================
--- python/trunk/Objects/stringobject.c	(original)
+++ python/trunk/Objects/stringobject.c	Mon Apr 17 07:56:32 2006
@@ -1677,9 +1677,9 @@
 			}
 #endif
 			PyErr_Format(PyExc_TypeError,
-				     "sequence item %i: expected string,"
+				     "sequence item %zd: expected string,"
 				     " %.80s found",
-				     /*XXX*/(int)i, item->ob_type->tp_name);
+				     i, item->ob_type->tp_name);
 			Py_DECREF(seq);
 			return NULL;
 		}


More information about the Python-checkins mailing list