mirror of
https://github.com/python/cpython.git
synced 2025-10-06 23:21:06 +00:00
bpo-47212: Improve error messages for un-parenthesized generator expressions (GH-32302)
This commit is contained in:
parent
f1606a5ba5
commit
aa0f056a00
7 changed files with 28 additions and 8 deletions
|
@ -1307,6 +1307,13 @@ Specialized indentation errors:
|
|||
Traceback (most recent call last):
|
||||
IndentationError: expected an indented block after 'try' statement on line 1
|
||||
|
||||
>>> try:
|
||||
... something()
|
||||
... except:
|
||||
... pass
|
||||
Traceback (most recent call last):
|
||||
IndentationError: expected an indented block after 'except' statement on line 3
|
||||
|
||||
>>> try:
|
||||
... something()
|
||||
... except A:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue