Kaydet (Commit) d25cfe66 authored tarafından Eric V. Smith's avatar Eric V. Smith

Improve exception text. Closes issue 13811.

üst cff9237d
...@@ -241,8 +241,8 @@ parse_internal_render_format_spec(PyObject *format_spec, ...@@ -241,8 +241,8 @@ parse_internal_render_format_spec(PyObject *format_spec,
/* Finally, parse the type field. */ /* Finally, parse the type field. */
if (end-pos > 1) { if (end-pos > 1) {
/* More than one char remain, invalid conversion spec. */ /* More than one char remain, invalid format specifier. */
PyErr_Format(PyExc_ValueError, "Invalid conversion specification"); PyErr_Format(PyExc_ValueError, "Invalid format specifier");
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment