Skip to content

Commit

Permalink
[3.6] bpo-31780: Fix incorrect error message for ',x', ',b', ',o' spe…
Browse files Browse the repository at this point in the history
…cs (GH-4002) (#4004)

Patch by Pablo.
(cherry picked from commit 28773ca)
  • Loading branch information
miss-islington authored and terryjreedy committed Oct 15, 2017
1 parent 0fee56c commit 59b5c13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python/formatter_unicode.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit 59b5c13

Please sign in to comment.