diff options
author | Eric V. Smith <eric@trueblade.com> | 2012-01-20 01:04:28 (GMT) |
---|---|---|
committer | Eric V. Smith <eric@trueblade.com> | 2012-01-20 01:04:28 (GMT) |
commit | d25cfe66f5072e4dd862f25c1ea584d92021b02c (patch) | |
tree | 9e4f39bae58608b115793f3c8e394e5ece9717c0 /Python/formatter_unicode.c | |
parent | cff9237d57dca37c6194148ae4c157452d269764 (diff) | |
download | cpython-d25cfe66f5072e4dd862f25c1ea584d92021b02c.zip cpython-d25cfe66f5072e4dd862f25c1ea584d92021b02c.tar.gz cpython-d25cfe66f5072e4dd862f25c1ea584d92021b02c.tar.bz2 |
Improve exception text. Closes issue 13811.
Diffstat (limited to 'Python/formatter_unicode.c')
-rw-r--r-- | Python/formatter_unicode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index 12b880d..db6364f 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; } |