Author pablogsal
Recipients ammar2, pablogsal
Date 2021-04-16.00:26:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618532769.85.0.413956426604.issue43859@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-04-16 00:26:09pablogsalsetrecipients: + pablogsal, ammar2
2021-04-16 00:26:09pablogsalsetmessageid: <1618532769.85.0.413956426604.issue43859@roundup.psfhosted.org>
2021-04-16 00:26:09pablogsallinkissue43859 messages
2021-04-16 00:26:09pablogsalcreate