Skip to content

Conversation

@pablogsal
Copy link
Member

@pablogsal 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 (pythonGH-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 backport-025a602-3.7 branch December 12, 2019 22:10
@pablogsal pablogsal restored the backport-025a602-3.7 branch December 12, 2019 22:12
@pablogsal pablogsal reopened this Dec 12, 2019
@pablogsal pablogsal merged commit 0ed45d0 into python:3.7 Dec 13, 2019
@pablogsal pablogsal deleted the backport-025a602-3.7 branch December 13, 2019 14:04
@bedevere-bot
Copy link

@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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants