summaryrefslogtreecommitdiff
path: root/Python/formatter_unicode.c
diff options
context:
space:
mode:
authorEric V. Smith <eric@trueblade.com>2012-01-19 20:04:28 -0500
committerEric V. Smith <eric@trueblade.com>2012-01-19 20:04:28 -0500
commita492ac5b62a9caa2282f4db44ebb767d1f1cfd0e (patch)
tree9cb6229c27ea1658af8a5e631e31967a92dae71e /Python/formatter_unicode.c
parentb31796472c1f685448a18e753b353aba9768ab13 (diff)
downloadcpython-a492ac5b62a9caa2282f4db44ebb767d1f1cfd0e.tar.gz
Improve exception text. Closes issue 13811.
Diffstat (limited to 'Python/formatter_unicode.c')
-rw-r--r--Python/formatter_unicode.c4
1 files changed, 2 insertions, 2 deletions
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;
}