]> granicus.if.org Git - python/commitdiff
[3.6] bpo-31780: Fix incorrect error message for ',x', ',b', ',o' specs (GH-4002...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 15 Oct 2017 04:01:28 +0000 (21:01 -0700)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sun, 15 Oct 2017 04:01:28 +0000 (00:01 -0400)
Patch by Pablo.
(cherry picked from commit 28773ca7a7aa58a28e42a9eb0066acf71b5a8dc4)

Python/formatter_unicode.c

index 9192bfd6a670fbc30fa7cfa68551f58ad3e7b3fa..d2be76f1e1a815ed03684184cc00ee129c36f386 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);
 }