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

reviewable/pr18001/r3
Matt Martz 9 years ago committed by John Barker
parent 1464f246a3
commit 86c50839bd

@ -175,7 +175,7 @@ class ModuleValidator(Validator):
if '\t' in i: if '\t' in i:
index = line.index(i) index = line.index(i)
self.errors.append('indentation contains tabs. line %d ' self.errors.append('indentation contains tabs. line %d '
'column %d' % (line_no, index)) 'column %d' % (line_no + 1, index))
def _find_json_import(self): def _find_json_import(self):
for child in self.ast.body: for child in self.ast.body:

Loading…
Cancel
Save