[Python-checkins] Remove full stop from a bytes-related SyntaxError message (GH-24300)

pablogsal webhook-mailer at python.org
Sat Jan 23 17:57:26 EST 2021


https://github.com/python/cpython/commit/bf9239bb61fda25efe89d53a60675528b2f3ce6f
commit: bf9239bb61fda25efe89d53a60675528b2f3ce6f
branch: master
author: numbermaniac <5206120+numbermaniac at users.noreply.github.com>
committer: pablogsal <Pablogsal at gmail.com>
date: 2021-01-23T22:56:57Z
summary:

Remove full stop from a bytes-related SyntaxError message (GH-24300)

files:
M Parser/string_parser.c

diff --git a/Parser/string_parser.c b/Parser/string_parser.c
index a41f41ce2784d..0f3665c3453e2 100644
--- a/Parser/string_parser.c
+++ b/Parser/string_parser.c
@@ -250,7 +250,7 @@ _PyPegen_parsestr(Parser *p, int *bytesmode, int *rawmode, PyObject **result,
             if (Py_CHARMASK(*ch) >= 0x80) {
                 RAISE_SYNTAX_ERROR(
                                    "bytes can only contain ASCII "
-                                   "literal characters.");
+                                   "literal characters");
                 return -1;
             }
         }



More information about the Python-checkins mailing list