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

This commit is contained in:
numbermaniac 2021-01-24 09:56:57 +11:00 committed by GitHub
parent f7fa64f0e8
commit bf9239bb61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}