]> granicus.if.org Git - python/commitdiff
bpo-31780: Fix incorrect error message for ',x', ',b', ',o' specs (#4002)
authorDargor <Pablogsal@gmail.com>
Sun, 15 Oct 2017 03:41:13 +0000 (04:41 +0100)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sun, 15 Oct 2017 03:41:13 +0000 (23:41 -0400)
Patch by Pablo.

Python/formatter_unicode.c

index 2df749493bf7de754718e2e77f606805c0828dc9..397ae7faafc223efad4fb482f7e92d96596708bf 100644 (file)
@@ -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);
 }