Skip to content
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

[3.7] bpo-39031: Include elif keyword when producing lineno/col-offset info for if_stmt (GH-17582) #17584

Merged
merged 1 commit into from Dec 13, 2019

Conversation

@pablogsal
Copy link
Member

pablogsal commented Dec 12, 2019

When parsing an "elif" node, lineno and col_offset of the node now point to the "elif" keyword and not to its condition, making it consistent with the "if" node.

https://bugs.python.org/issue39031

Automerge-Triggered-By: @pablogsal.
(cherry picked from commit 025a602)

Co-authored-by: Lysandros Nikolaou lisandrosnik@gmail.com

https://bugs.python.org/issue39031

…t info for if_stmt (GH-17582)

When parsing an "elif" node, lineno and col_offset of the node now point to the "elif" keyword and not to its condition, making it consistent with the "if" node.

https://bugs.python.org/issue39031

Automerge-Triggered-By: @pablogsal.
(cherry picked from commit 025a602)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
@pablogsal pablogsal closed this Dec 12, 2019
@pablogsal pablogsal deleted the pablogsal:backport-025a602-3.7 branch Dec 12, 2019
@pablogsal pablogsal restored the pablogsal:backport-025a602-3.7 branch Dec 12, 2019
@pablogsal pablogsal reopened this Dec 12, 2019
@pablogsal pablogsal merged commit 0ed45d0 into python:3.7 Dec 13, 2019
4 of 5 checks passed
4 of 5 checks passed
continuous-integration/travis-ci/pr The Travis CI build failed
Details
Azure Pipelines PR #20191212.16 succeeded
Details
bedevere/issue-number Issue number 39031 found
Details
bedevere/maintenance-branch-pr Valid maintenance branch PR title.
bedevere/news News entry found in Misc/NEWS.d
@pablogsal pablogsal deleted the pablogsal:backport-025a602-3.7 branch Dec 13, 2019
@bedevere-bot

This comment has been minimized.

Copy link

bedevere-bot commented Dec 13, 2019

@pablogsal: Please replace # with GH- in the commit message next time. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.