]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove full stop from a bytes-related SyntaxError message (GH-24300)
authornumbermaniac <5206120+numbermaniac@users.noreply.github.com>
Sat, 23 Jan 2021 22:56:57 +0000 (09:56 +1100)
committerGitHub <noreply@github.com>
Sat, 23 Jan 2021 22:56:57 +0000 (22:56 +0000)
Parser/string_parser.c

index a41f41ce2784d17bf547513a84ca0314ec51e9ce..0f3665c3453e2e249566be9a82bd78f14f7a2a75 100644 (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;
             }
         }