[issue40985] PEG Parser: SyntaxError text empty when last line has a LINECONT

2020-06-15 Thread miss-islington
miss-islington added the comment: New changeset 097b8b6d52e3d4991c68dce74f182718dc0eab9c by Miss Islington (bot) in branch '3.9': bpo-40985: Show correct SyntaxError text when last line has a LINECONT (GH-20888) https://github.com/python/cpython/commit/097b8b6d52e3d4991c68dce74f182718dc0eab9

[issue40985] PEG Parser: SyntaxError text empty when last line has a LINECONT

2020-06-15 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue40985] PEG Parser: SyntaxError text empty when last line has a LINECONT

2020-06-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +20088 pull_request: https://github.com/python/cpython/pull/20905 ___ Python tracker _

[issue40985] PEG Parser: SyntaxError text empty when last line has a LINECONT

2020-06-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 113e2b0a07c72c0d5e3489076afb14f6b3ad1049 by Lysandros Nikolaou in branch 'master': bpo-40985: Show correct SyntaxError text when last line has a LINECONT (GH-20888) https://github.com/python/cpython/commit/113e2b0a07c72c0d5e3489076afb14f

[issue40985] PEG Parser: SyntaxError text empty when last line has a LINECONT

2020-06-15 Thread Guido van Rossum
Guido van Rossum added the comment: Yes, it's clear. :-) This is one reason we need to migrate off bpo and onto GitHub. -- ___ Python tracker ___

[issue40985] PEG Parser: SyntaxError text empty when last line has a LINECONT

2020-06-15 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- keywords: +patch pull_requests: +20071 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20888 ___ Python tracker _

[issue40985] PEG Parser: SyntaxError text empty when last line has a LINECONT

2020-06-15 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: I keep doing something wrong. I hope it is clean by now what the difference is. -- ___ Python tracker ___ ___

[issue40985] PEG Parser: SyntaxError text empty when last line has a LINECONT

2020-06-15 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- nosy: +gvanrossum, pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40985] PEG Parser: SyntaxError text empty when last line has a LINECONT

2020-06-15 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Copying and pasting the example messed the formatting up. Here it is again. [16:49:16] lysnikolaou:cpython git:(master*) $ cat t.py x = 6\% [16:49:23] lysnikolao

[issue40985] PEG Parser: SyntaxError text empty when last line has a LINECONT

2020-06-15 Thread Lysandros Nikolaou
New submission from Lysandros Nikolaou : While investigating bpo-40958, the following came up: 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