]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40267: Fix message when last input character produces a SyntaxError (GH-19521)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Wed, 15 Apr 2020 18:22:10 +0000 (21:22 +0300)
committerGitHub <noreply@github.com>
Wed, 15 Apr 2020 18:22:10 +0000 (11:22 -0700)
commit9a4b38f66b3e674db94e07980e1cacb39e388c73
treeb8046dd0e0b7b9bf0e3592b88c9dc0cd2c7f7ae5
parent574547a75c79b506261520c5773ae08a1dcea1b9
bpo-40267: Fix message when last input character produces a SyntaxError (GH-19521)

When there is a SyntaxError after reading the last input character from
the tokenizer and if no newline follows it, the error message used to be
`unexpected EOF while parsing`, which is wrong.
Include/token.h
Lib/test/test_fstring.py
Misc/NEWS.d/next/Core and Builtins/2020-04-14-18-54-50.bpo-40267.Q2N6Bw.rst [new file with mode: 0644]
Parser/parsetok.c
Tools/scripts/generate_token.py