Commit 0ed45d0
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>
1 parent 85924a4 commit 0ed45d0
File tree
3 files changed
+13
-2
lines changed- Lib/test
- Misc/NEWS.d/next/Core and Builtins
- Python
3 files changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
598 | 600 | | |
599 | 601 | | |
600 | 602 | | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
601 | 609 | | |
602 | 610 | | |
603 | 611 | | |
| |||
1235 | 1243 | | |
1236 | 1244 | | |
1237 | 1245 | | |
| 1246 | + | |
1238 | 1247 | | |
1239 | 1248 | | |
1240 | 1249 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3622 | 3622 | | |
3623 | 3623 | | |
3624 | 3624 | | |
3625 | | - | |
3626 | | - | |
| 3625 | + | |
| 3626 | + | |
3627 | 3627 | | |
3628 | 3628 | | |
3629 | 3629 | | |
| |||
0 commit comments