diff options
author | Matthieu Dartiailh <marul@laposte.net> | 2022-04-05 16:21:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-05 16:21:49 (GMT) |
commit | 94609e3192f15636c760a48c4c1c2c236fac3217 (patch) | |
tree | ce29210ce50fd9873fbafc9497b09991f97207b3 /Misc | |
parent | 857cf55cbdd65b7a9534dc35d89a19dfe8cbdba5 (diff) | |
download | cpython-94609e3192f15636c760a48c4c1c2c236fac3217.zip cpython-94609e3192f15636c760a48c4c1c2c236fac3217.tar.gz cpython-94609e3192f15636c760a48c4c1c2c236fac3217.tar.bz2 |
[3.10] Backport bpo-47212 (GH-32302) to Python 3.10 (GH-32334)
(cherry picked from commit aa0f056a00c4bcaef83d729e042359ddae903382)
# Conflicts:
# Grammar/python.gram
# Parser/action_helpers.c
Automerge-Triggered-By: GH:pablogsal
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2022-04-05-11-29-21.bpo-47212.leF4pz.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-04-05-11-29-21.bpo-47212.leF4pz.rst b/Misc/NEWS.d/next/Core and Builtins/2022-04-05-11-29-21.bpo-47212.leF4pz.rst new file mode 100644 index 0000000..8f1f6b6 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-04-05-11-29-21.bpo-47212.leF4pz.rst @@ -0,0 +1,3 @@ +Raise :exc:`IndentationError` instead of :exc:`SyntaxError` for a bare
+``except`` with no following indent. Improve :exc:`SyntaxError` locations for
+an un-parenthesized generator used as arguments. Patch by Matthieu Dartiailh.
|