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

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