The style checker for spacing around control statements (ControlSpace)
and the whitespace checker (Whitespace) didn't refer to some of their
configuration variables correctly. This changeset fixes those issues.
Reported-by: Jason Lowe-Power <power.jg@gmail.com>
--HG--
extra : amend_source :
05d82d27d4c42aacd78b514d3ca35ca5744164bb
if c == ' ':
newline += ' '
elif c == '\t':
- newline += ' ' * (tabsize - len(newline) % tabsize)
+ newline += ' ' * (style.tabsize - \
+ len(newline) % style.tabsize)
else:
newline += line[i:]
break
return not (match and match.group(2) != " ")
def fix_line(self, line, **kwargs):
- new_line = _any_control.sub(r'\1 (', line)
+ new_line = ControlSpace._any_control.sub(r'\1 (', line)
return new_line