From: Eric V. Smith Date: Fri, 20 Jan 2012 01:04:28 +0000 (-0500) Subject: Improve exception text. Closes issue 13811. X-Git-Tag: v3.3.0a1~335 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d25cfe66f5072e4dd862f25c1ea584d92021b02c;p=python Improve exception text. Closes issue 13811. --- diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index 12b880d7e7..db6364f513 100644 --- a/Python/formatter_unicode.c +++ b/Python/formatter_unicode.c @@ -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; }