Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
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
bpo-43859: Improve the error message for IndentationError exceptions #25431
bpo-43859: Improve the error message for IndentationError exceptions #25431
Changes from all commits
6984a96
d7d92a1
ae9e4dd
f85591c
File filter
Jump to
ammaraskarApr 16, 2021
Member
Just wondering, was this moved up for consistency with the other rules or is there another reason for it?
pablogsalApr 16, 2021
Author
Member
Is moved so it can work. PEG alternatives are ordered and if this is not the first one the backtracking will make it fail before is even consider
ammaraskarApr 16, 2021
Member
It looks like this rule has changed from
'finally' ':' a=block { a }
'finally' &&':' a=block { a }
is that on purpose?
pablogsalApr 16, 2021
Author
Member
Yup, although this is sort of independent: this is for the "missing :" message for finally blocks. I could factor into a different PR but as I am shuffling these already I decided to do it here
ammaraskarApr 16, 2021
Member
I think you're missing a test for
while
,case
andmatch
statements.pablogsalApr 16, 2021
Author
Member
Thanks for the catch, will add those soon