Commit 28773ca7 authored by Dargor's avatar Dargor Committed by Terry Jan Reedy

bpo-31780: Fix incorrect error message for ',x', ',b', ',o' specs (#4002)

Patch by Pablo.
parent 620f70ee
......@@ -32,11 +32,11 @@ invalid_comma_type(Py_UCS4 presentation_type)
{
if (presentation_type > 32 && presentation_type < 128)
PyErr_Format(PyExc_ValueError,
"Cannot specify ',' or '_' with '%c'.",
"Cannot specify ',' with '%c'.",
(char)presentation_type);
else
PyErr_Format(PyExc_ValueError,
"Cannot specify ',' or '_' with '\\x%x'.",
"Cannot specify ',' with '\\x%x'.",
(unsigned int)presentation_type);
}
......
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