[New-bugs-announce] [issue31495] Wrong offset with IndentationError ("expected an indented block")
daniel hahler
report at bugs.python.org
Sat Sep 16 16:58:29 EDT 2017
New submission from daniel hahler:
Given the following file `t-expected-indent.py`:
```
if 1:
foo
```
python t-expected-indent.py reports:
```
File "t-expected-indent.py", line 2
foo
^
IndentationError: expected an indented block
```
However, it should get reported for column 1 instead of 3.
----------
components: Interpreter Core
messages: 302354
nosy: blueyed
priority: normal
severity: normal
status: open
title: Wrong offset with IndentationError ("expected an indented block")
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31495>
_______________________________________
More information about the New-bugs-announce
mailing list