We are using enumerate to get line numbers, so we need to add 1 since it is 0 offset
This commit is contained in:
parent
1464f246a3
commit
86c50839bd
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ class ModuleValidator(Validator):
|
|||
if '\t' in i:
|
||||
index = line.index(i)
|
||||
self.errors.append('indentation contains tabs. line %d '
|
||||
'column %d' % (line_no, index))
|
||||
'column %d' % (line_no + 1, index))
|
||||
|
||||
def _find_json_import(self):
|
||||
for child in self.ast.body:
|
||||
|
|
Loading…
Reference in a new issue