Repository navigation
Commit f3680ad
committed
gh-159739: Preserve the syntax error if metadata allocation fails
Restore the original exception when optional syntax-error metadata
cannot be allocated.
Backport to 3.15 and 3.14. On 3.14, also remove the erroneous
Py_DECREF(the_source): the N format unit already consumed that
reference.1 parent a071788 commit f3680ad
2 files changed
Lines changed: 3 additions & 0 deletions
File tree
- Misc/NEWS.d/next/Core_and_Builtins
- Parser
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1083 | 1083 | | |
1084 | 1084 | | |
1085 | 1085 | | |
| 1086 | + | |
1086 | 1087 | | |
1087 | 1088 | | |
1088 | 1089 | | |
| |||
0 commit comments