Commit 097b8b6
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 line. (cherry picked from commit 113e2b0) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
1 parent bc996c6 commit 097b8b6
File tree
3 files changed
+13
-4
lines changed- Lib/test
- Misc/NEWS.d/next/Core and Builtins
- Python
3 files changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1648 | 1648 | | |
1649 | 1649 | | |
1650 | 1650 | | |
1651 | | - | |
1652 | | - | |
| 1651 | + | |
1653 | 1652 | | |
| 1653 | + | |
| 1654 | + | |
1654 | 1655 | | |
1655 | 1656 | | |
1656 | 1657 | | |
1657 | 1658 | | |
1658 | 1659 | | |
1659 | | - | |
1660 | | - | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
1661 | 1663 | | |
1662 | 1664 | | |
1663 | 1665 | | |
1664 | 1666 | | |
1665 | 1667 | | |
1666 | 1668 | | |
1667 | 1669 | | |
| 1670 | + | |
| 1671 | + | |
1668 | 1672 | | |
1669 | 1673 | | |
1670 | 1674 | | |
| |||
0 commit comments