mirror of
https://github.com/python/cpython.git
synced 2025-09-30 04:15:43 +00:00
[3.6] bpo-31780: Fix incorrect error message for ',x', ',b', ',o' specs (GH-4002) (#4004)
Patch by Pablo.
(cherry picked from commit 28773ca7a7
)
This commit is contained in:
parent
0fee56c863
commit
59b5c139d2
1 changed files with 2 additions and 2 deletions
|
@ -32,11 +32,11 @@ invalid_comma_type(Py_UCS4 presentation_type)
|
||||||
{
|
{
|
||||||
if (presentation_type > 32 && presentation_type < 128)
|
if (presentation_type > 32 && presentation_type < 128)
|
||||||
PyErr_Format(PyExc_ValueError,
|
PyErr_Format(PyExc_ValueError,
|
||||||
"Cannot specify ',' or '_' with '%c'.",
|
"Cannot specify ',' with '%c'.",
|
||||||
(char)presentation_type);
|
(char)presentation_type);
|
||||||
else
|
else
|
||||||
PyErr_Format(PyExc_ValueError,
|
PyErr_Format(PyExc_ValueError,
|
||||||
"Cannot specify ',' or '_' with '\\x%x'.",
|
"Cannot specify ',' with '\\x%x'.",
|
||||||
(unsigned int)presentation_type);
|
(unsigned int)presentation_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue