summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornumbermaniac <5206120+numbermaniac@users.noreply.github.com>2021-01-24 09:56:57 +1100
committerGitHub <noreply@github.com>2021-01-23 22:56:57 +0000
commitbf9239bb61fda25efe89d53a60675528b2f3ce6f (patch)
treecbe9598be9b0aea70ae0487a2b54ac6f246eaa85
parentcloses bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305) (diff)
downloadcpython-bf9239bb61fda25efe89d53a60675528b2f3ce6f.tar.gz
cpython-bf9239bb61fda25efe89d53a60675528b2f3ce6f.tar.bz2
cpython-bf9239bb61fda25efe89d53a60675528b2f3ce6f.zip
Remove full stop from a bytes-related SyntaxError message (GH-24300)
-rw-r--r--Parser/string_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/string_parser.c b/Parser/string_parser.c
index a41f41ce278..0f3665c3453 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;
}
}