Skip to content

[3.9] bpo-40985: Show correct SyntaxError text when last line has a LINECONT (GH-20888) #20905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2020

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 16, 2020

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.
(cherry picked from commit 113e2b0)

Co-authored-by: Lysandros Nikolaou [email protected]

https://bugs.python.org/issue40985

pythonGH-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.
(cherry picked from commit 113e2b0)

Co-authored-by: Lysandros Nikolaou <[email protected]>
@miss-islington
Copy link
Contributor Author

@lysnikolaou and @pablogsal: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 097b8b6 into python:3.9 Jun 16, 2020
@miss-islington miss-islington deleted the backport-113e2b0-3.9 branch June 16, 2020 00:46
@miss-islington
Copy link
Contributor Author

@lysnikolaou and @pablogsal: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington
Copy link
Contributor Author

@lysnikolaou and @pablogsal: Status check is done, and it's a success ✅ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants