diff options
author | Dargor <Pablogsal@gmail.com> | 2017-10-15 03:41:13 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2017-10-15 03:41:13 (GMT) |
commit | 28773ca7a7aa58a28e42a9eb0066acf71b5a8dc4 (patch) | |
tree | 9ea3fb219e6a2c42787fda9b0c6491eb05546f0d /Python/formatter_unicode.c | |
parent | 620f70eed615efde35517d7ae86354de3b2a0d03 (diff) | |
download | cpython-28773ca7a7aa58a28e42a9eb0066acf71b5a8dc4.zip cpython-28773ca7a7aa58a28e42a9eb0066acf71b5a8dc4.tar.gz cpython-28773ca7a7aa58a28e42a9eb0066acf71b5a8dc4.tar.bz2 |
bpo-31780: Fix incorrect error message for ',x', ',b', ',o' specs (#4002)
Patch by Pablo.
Diffstat (limited to 'Python/formatter_unicode.c')
-rw-r--r-- | Python/formatter_unicode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index 2df7494..397ae7f 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); } |