Implement E101. No mixing of tabs and spaces in indentation.

This commit is contained in:
Dave Halter
2017-06-08 00:10:15 +02:00
parent 34aabd6b47
commit c07cd77417
5 changed files with 97 additions and 19 deletions

View File

@@ -15,6 +15,14 @@ class PrefixPart(object):
return self.start_pos[0] + 1, 0
return self.start_pos[0], self.start_pos[1] + len(self.value)
def __repr__(self):
return '%s(%s, %s, %s)' % (
self.__class__.__name__,
self.type,
repr(self.value),
self.start_pos
)
_comment = r'#[^\n\r\f]*'
_backslash = r'\\\r?\n'