]> granicus.if.org Git - python/commitdiff
Improve exception text. Closes issue 13811.
authorEric V. Smith <eric@trueblade.com>
Fri, 20 Jan 2012 01:04:28 +0000 (20:04 -0500)
committerEric V. Smith <eric@trueblade.com>
Fri, 20 Jan 2012 01:04:28 +0000 (20:04 -0500)
Python/formatter_unicode.c

index 12b880d7e79291591521af1106108a6e4cc41b88..db6364f5135dc7ff8b090019843ff384843a8766 100644 (file)
@@ -241,8 +241,8 @@ parse_internal_render_format_spec(PyObject *format_spec,
     /* 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;
     }