diff Python/formatter_unicode.c @ 74533:5c33ebb50702

Improve exception text. Closes issue 13811.
author Eric V. Smith <eric@trueblade.com>
date Thu, 19 Jan 2012 20:04:28 -0500
parents c2153ce1b5dd
children 231c6042c40c
line wrap: on
line diff
--- a/Python/formatter_unicode.c	Thu Jan 19 17:46:13 2012 -0500
+++ b/Python/formatter_unicode.c	Thu Jan 19 20:04:28 2012 -0500
@@ -241,8 +241,8 @@
     /* Finally, parse the type field. */
 
     if (end-pos > 1) {
-        /* More than one char remain, invalid conversion spec. */
-        PyErr_Format(PyExc_ValueError, "Invalid conversion specification");
+        /* More than one char remain, invalid format specifier. */
+        PyErr_Format(PyExc_ValueError, "Invalid format specifier");
         return 0;
     }