We are using enumerate to get line numbers, so we need to add 1 since it is 0 offset

This commit is contained in:
Matt Martz 2015-10-08 13:50:21 -05:00 committed by John Barker
parent 1464f246a3
commit 86c50839bd

View file

@ -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: