[Python-checkins] r42720 - python/trunk/Python/getargs.c
thomas.wouters
python-checkins at python.org
Wed Mar 1 06:38:42 CET 2006
Author: thomas.wouters
Date: Wed Mar 1 06:38:39 2006
New Revision: 42720
Modified:
python/trunk/Python/getargs.c
Log:
Use %zd format characters for Py_ssize_t types.
Modified: python/trunk/Python/getargs.c
==============================================================================
--- python/trunk/Python/getargs.c (original)
+++ python/trunk/Python/getargs.c Wed Mar 1 06:38:39 2006
@@ -1686,13 +1686,13 @@
if (name != NULL)
PyErr_Format(
PyExc_TypeError,
- "%s expected %s%d arguments, got %d",
+ "%s expected %s%zd arguments, got %zd",
name, (min == max ? "" : "at least "), min, l);
else
PyErr_Format(
PyExc_TypeError,
- "unpacked tuple should have %s%d elements,"
- " but has %d",
+ "unpacked tuple should have %s%zd elements,"
+ " but has %zd",
(min == max ? "" : "at least "), min, l);
va_end(vargs);
return 0;
@@ -1701,13 +1701,13 @@
if (name != NULL)
PyErr_Format(
PyExc_TypeError,
- "%s expected %s%d arguments, got %d",
+ "%s expected %s%zd arguments, got %zd",
name, (min == max ? "" : "at most "), max, l);
else
PyErr_Format(
PyExc_TypeError,
- "unpacked tuple should have %s%d elements,"
- " but has %d",
+ "unpacked tuple should have %s%zd elements,"
+ " but has %zd",
(min == max ? "" : "at most "), max, l);
va_end(vargs);
return 0;
More information about the Python-checkins
mailing list