summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-10-15 04:01:28 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2017-10-15 04:01:28 (GMT)
commit59b5c139d2ae95b1d1da63f81c3d777932215533 (patch)
tree552f0a99dc83daa1981567052f6485c468af3a81 /Python
parent0fee56c86344386bde8486ab803f564cb8a5203b (diff)
downloadcpython-59b5c139d2ae95b1d1da63f81c3d777932215533.zip
cpython-59b5c139d2ae95b1d1da63f81c3d777932215533.tar.gz
cpython-59b5c139d2ae95b1d1da63f81c3d777932215533.tar.bz2
[3.6] bpo-31780: Fix incorrect error message for ',x', ',b', ',o' specs (GH-4002) (#4004)
Patch by Pablo. (cherry picked from commit 28773ca7a7aa58a28e42a9eb0066acf71b5a8dc4)
Diffstat (limited to 'Python')
-rw-r--r--Python/formatter_unicode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c
index 9192bfd..d2be76f 100644
--- a/Python/formatter_unicode.c
+++ b/Python/formatter_unicode.c
@@ -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);
}