[3.6] bpo-31780: Fix incorrect error message for ',x', ',b', ',o' spe… · python/cpython@59b5c13 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 59b5c13

miss-islingtonterryjreedy

authored and

committed

[3.6] bpo-31780: Fix incorrect error message for ',x', ',b', ',o' specs (GH-4002) (#4004)

Patch by Pablo. (cherry picked from commit 28773ca)

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -32,11 +32,11 @@ invalid_comma_type(Py_UCS4 presentation_type)
32 32 {
33 33 if (presentation_type > 32 && presentation_type < 128)
34 34 PyErr_Format(PyExc_ValueError,
35 -"Cannot specify ',' or '_' with '%c'.",
35 +"Cannot specify ',' with '%c'.",
36 36 (char)presentation_type);
37 37 else
38 38 PyErr_Format(PyExc_ValueError,
39 -"Cannot specify ',' or '_' with '\\x%x'.",
39 +"Cannot specify ',' with '\\x%x'.",
40 40 (unsigned int)presentation_type);
41 41 }
42 42