Skip to content

Commit 28773ca

Browse files
pablogsalterryjreedy
authored andcommitted
bpo-31780: Fix incorrect error message for ',x', ',b', ',o' specs (python#4002)
Patch by Pablo.
1 parent 620f70e commit 28773ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Python/formatter_unicode.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ invalid_comma_type(Py_UCS4 presentation_type)
3232
{
3333
if (presentation_type > 32 && presentation_type < 128)
3434
PyErr_Format(PyExc_ValueError,
35-
"Cannot specify ',' or '_' with '%c'.",
35+
"Cannot specify ',' with '%c'.",
3636
(char)presentation_type);
3737
else
3838
PyErr_Format(PyExc_ValueError,
39-
"Cannot specify ',' or '_' with '\\x%x'.",
39+
"Cannot specify ',' with '\\x%x'.",
4040
(unsigned int)presentation_type);
4141
}
4242

0 commit comments

Comments
 (0)