]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40985: Show correct SyntaxError text when last line has a LINECONT (GH-20888)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Tue, 16 Jun 2020 00:27:33 +0000 (03:27 +0300)
committerGitHub <noreply@github.com>
Tue, 16 Jun 2020 00:27:33 +0000 (01:27 +0100)
commit113e2b0a07c72c0d5e3489076afb14f6b3ad1049
tree286d9d282f1e5290706475f2409bc4e332bd2738
parent8666356280084f0426c28a981341f72eaaacd006
bpo-40985: Show correct SyntaxError text when last line has a LINECONT (GH-20888)

When a file ends with a line that contains a line continuation character
the text of the emitted SyntaxError is empty, contrary to the old
parser, where the error text contained the text of the last line.
Lib/test/test_eof.py
Misc/NEWS.d/next/Core and Builtins/2020-06-15-16-29-55.bpo-40985.IIN_xX.rst [new file with mode: 0644]
Python/errors.c