Get the index of the tab, not the line itself

reviewable/pr18001/r3
Matt Martz 9 years ago committed by John Barker
parent e3dbe85f25
commit 2218e763f8

@ -177,7 +177,7 @@ class ModuleValidator(Validator):
indent = INDENT_REGEX.search(line)
for i in indent.groups():
if '\t' in i:
index = line.index(i)
index = line.index('\t')
self.errors.append('indentation contains tabs. line %d '
'column %d' % (line_no + 1, index))

Loading…
Cancel
Save