From 94fb5ee41390fc26b4f1437b17109f6d9b90e48e Mon Sep 17 00:00:00 2001 From: numbermaniac <5206120+numbermaniac@users.noreply.github.com> Date: Sat, 23 Jan 2021 16:31:20 +1100 Subject: [PATCH] Remove full stop from bytes syntaxerror message --- Parser/string_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parser/string_parser.c b/Parser/string_parser.c index a41f41ce2784d1..0f3665c3453e2e 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; } }