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

Terry Jan Reedy webhook-mailer at python.org
Sat Oct 14 23:41:16 EDT 2017


https://github.com/python/cpython/commit/28773ca7a7aa58a28e42a9eb0066acf71b5a8dc4
commit: 28773ca7a7aa58a28e42a9eb0066acf71b5a8dc4
branch: master
author: Dargor <Pablogsal at gmail.com>
committer: Terry Jan Reedy <tjreedy at udel.edu>
date: 2017-10-14T23:41:13-04:00
summary:

bpo-31780: Fix incorrect error message for ',x', ',b', ',o' specs (#4002)

Patch by Pablo.

files:
M Python/formatter_unicode.c

diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c
index 2df749493bf..397ae7faafc 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);
 }
 



More information about the Python-checkins mailing list