101
101
def check_newlines(j1, j2):
102
102
for i, line in enumerate(newlines[j1:j2]):
103
104
trailing_ws_match = re.match(r'^((.*?)([\t ]*))(\r?\n)?$',
108
109
line_content = trailing_ws_match.group(1)
109
110
has_trailing_whitespace = bool(trailing_ws_match.group(3))
110
111
if has_trailing_whitespace:
111
112
self._push_file_line(self.trailing_whitespace,
113
114
if len(line_content) > self.long_line_length:
114
115
self._push_file_line(self.long_lines,
117
118
for group in sequence_matcher(None, oldlines, newlines
118
119
).get_grouped_opcodes(0):