Message391160
The current indentation error is quite simplistic and it does not include the context of the statement that was associated with the indented block and where it was:
>>> def foo():
... if lel:
... x = 2
File "<stdin>", line 3
x = 2
^
IndentationError: expected an indented block
we can improve the error by adding some context:
>>> def foo():
... if lel:
... x = 2
File "<stdin>", line 3
x = 2
^
IndentationError: expected an indented block after if statement in line 2 |
|
Date |
User |
Action |
Args |
2021-04-16 00:26:09 | pablogsal | set | recipients:
+ pablogsal, ammar2 |
2021-04-16 00:26:09 | pablogsal | set | messageid: <1618532769.85.0.413956426604.issue43859@roundup.psfhosted.org> |
2021-04-16 00:26:09 | pablogsal | link | issue43859 messages |
2021-04-16 00:26:09 | pablogsal | create | |
|