From: numbermaniac <5206120+numbermaniac@users.noreply.github.com> Date: Sat, 23 Jan 2021 22:56:57 +0000 (+1100) Subject: Remove full stop from a bytes-related SyntaxError message (GH-24300) X-Git-Tag: v3.10.0a5~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf9239bb61fda25efe89d53a60675528b2f3ce6f;p=thirdparty%2FPython%2Fcpython.git Remove full stop from a bytes-related SyntaxError message (GH-24300) --- diff --git a/Parser/string_parser.c b/Parser/string_parser.c index a41f41ce2784..0f3665c3453e 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; } }