Get the index of the tab, not the line itself
This commit is contained in:
parent
e3dbe85f25
commit
2218e763f8
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ class ModuleValidator(Validator):
|
||||||
indent = INDENT_REGEX.search(line)
|
indent = INDENT_REGEX.search(line)
|
||||||
for i in indent.groups():
|
for i in indent.groups():
|
||||||
if '\t' in i:
|
if '\t' in i:
|
||||||
index = line.index(i)
|
index = line.index('\t')
|
||||||
self.errors.append('indentation contains tabs. line %d '
|
self.errors.append('indentation contains tabs. line %d '
|
||||||
'column %d' % (line_no + 1, index))
|
'column %d' % (line_no + 1, index))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue