fix: use unambiguous punction in 'invalid escape sequence' message (GH-26582)

(cherry picked from commit ffd87b7093)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
This commit is contained in:
Miss Islington (bot) 2021-06-07 17:36:19 -07:00 committed by GitHub
parent 8524e32d77
commit d80f4265db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -651,7 +651,7 @@ def test_syntaxerror_invalid_escape_sequence_multi_line(self):
stderr.splitlines()[-3:],
[ b' foo = """\\q"""',
b' ^^^^^^^^',
b'SyntaxError: invalid escape sequence \\q'
b'SyntaxError: invalid escape sequence \'\\q\''
],
)