commit | bf9239bb61fda25efe89d53a60675528b2f3ce6f | [log] [tgz] |
---|---|---|
author | numbermaniac <5206120+numbermaniac@users.noreply.github.com> | Sun Jan 24 09:56:57 2021 +1100 |
committer | GitHub <noreply@github.com> | Sat Jan 23 22:56:57 2021 +0000 |
tree | cbe9598be9b0aea70ae0487a2b54ac6f246eaa85 | |
parent | f7fa64f0e87edc61d990ed51b4da722906a10928 [diff] [blame] |
Remove full stop from a bytes-related SyntaxError message (GH-24300)
diff --git a/Parser/string_parser.c b/Parser/string_parser.c index a41f41c..0f3665c 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; } }